lt.monarch.chart.engine
Class Graphics3D

java.lang.Object
  extended by lt.monarch.chart.engine.JavaGraphics
      extended by lt.monarch.chart.engine.Graphics3D
All Implemented Interfaces:
AbstractGraphics

public class Graphics3D
extends JavaGraphics


Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.engine.JavaGraphics
g
 
Constructor Summary
Constructor and Description
Graphics3D(java.awt.Graphics2D g)
          Graphics 3D constructor
 
Method Summary
Modifier and Type Method and Description
 AbstractGraphics create()
           
 void dispose()
           
 void draw(Primitive shape)
           
 void drawChars(char[] data, int offset, int length, double x, double y)
           
 void drawChars(char[] data, int offset, int length, double x, double y, double z)
          Draws chars
 void drawString(java.lang.String text, double x, double y)
           
 void drawString(java.lang.String text, double x, double y, double z)
          Draws the text
 void drawString(java.lang.String text, double x, double y, double z, double width, double height, double angle)
          Draws the text
 void endScene(Chart<?> chart)
          Stops gathering primitives for scene and renders the scene
 void fill(Primitive shape)
           
 java.util.List<Plane> getClipPlanes()
          Gets clip planes.
 void repaint()
          Does nothing.
 void rotate(double theta)
           
 void rotate(double theta, double x, double y)
           
 void setBounds(Rectangle2D bounds)
          Sets rendered are bounds
 void setColor(java.awt.Color color)
           
 void setComposite(java.awt.Composite composite)
           
 void setEngine(Engine3D engine)
          Sets a 3D rendering engine
 void setFont(java.awt.Font font)
           
 void setPaint(java.awt.Paint paint)
           
 void setRenderingHints(java.awt.RenderingHints hints)
           
 void setStroke(java.awt.Stroke stroke)
           
 void startScene(Chart<?> chart)
          Starts gathering primitives for scene
 
Methods inherited from class lt.monarch.chart.engine.JavaGraphics
addRenderingHints, clip, drawImage, drawImage, getClip, getClipBounds, getColor, getComposite, getFont, getFontMetrics, getFontMetrics, getGraphics2D, getPaint, getRenderingHints, getStroke, getTransform, renderScene, scale, setClip, setGraphics, setPaintMode, setTransform, setXORMode, transform, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graphics3D

public Graphics3D(java.awt.Graphics2D g)
Graphics 3D constructor

Parameters:
g - graphics context
Method Detail

startScene

public void startScene(Chart<?> chart)
Starts gathering primitives for scene

Specified by:
startScene in interface AbstractGraphics
Overrides:
startScene in class JavaGraphics

endScene

public void endScene(Chart<?> chart)
Stops gathering primitives for scene and renders the scene

Specified by:
endScene in interface AbstractGraphics
Overrides:
endScene in class JavaGraphics

draw

public void draw(Primitive shape)
Specified by:
draw in interface AbstractGraphics
Overrides:
draw in class JavaGraphics

fill

public void fill(Primitive shape)
Specified by:
fill in interface AbstractGraphics
Overrides:
fill in class JavaGraphics

repaint

public void repaint()
Does nothing.


dispose

public void dispose()
Specified by:
dispose in interface AbstractGraphics
Overrides:
dispose in class JavaGraphics

setPaint

public void setPaint(java.awt.Paint paint)
Specified by:
setPaint in interface AbstractGraphics
Overrides:
setPaint in class JavaGraphics

setColor

public void setColor(java.awt.Color color)
Specified by:
setColor in interface AbstractGraphics
Overrides:
setColor in class JavaGraphics

setComposite

public void setComposite(java.awt.Composite composite)
Specified by:
setComposite in interface AbstractGraphics
Overrides:
setComposite in class JavaGraphics

setFont

public void setFont(java.awt.Font font)
Specified by:
setFont in interface AbstractGraphics
Overrides:
setFont in class JavaGraphics

setStroke

public void setStroke(java.awt.Stroke stroke)
Specified by:
setStroke in interface AbstractGraphics
Overrides:
setStroke in class JavaGraphics

setRenderingHints

public void setRenderingHints(java.awt.RenderingHints hints)
Specified by:
setRenderingHints in interface AbstractGraphics
Overrides:
setRenderingHints in class JavaGraphics

drawString

public void drawString(java.lang.String text,
                       double x,
                       double y,
                       double z)
Draws the text

Parameters:
text - text to draw
x - x coordinate
y - y coordinate
z - z coordinate

drawString

public void drawString(java.lang.String text,
                       double x,
                       double y,
                       double z,
                       double width,
                       double height,
                       double angle)
Draws the text

Parameters:
text - text to draw
x - x center coordinate
y - y center coordinate
z - z center coordinate
width - total width
height - total height
angle - rotation angle

drawString

public void drawString(java.lang.String text,
                       double x,
                       double y)
Specified by:
drawString in interface AbstractGraphics
Overrides:
drawString in class JavaGraphics

drawChars

public void drawChars(char[] data,
                      int offset,
                      int length,
                      double x,
                      double y,
                      double z)
Draws chars

Parameters:
data - data to draw
offset - offset
length - length
x - x coordinate
y - y coordinate
z - z coordinate

drawChars

public void drawChars(char[] data,
                      int offset,
                      int length,
                      double x,
                      double y)
Specified by:
drawChars in interface AbstractGraphics
Overrides:
drawChars in class JavaGraphics

create

public AbstractGraphics create()
Specified by:
create in interface AbstractGraphics
Overrides:
create in class JavaGraphics

rotate

public void rotate(double theta)
Specified by:
rotate in interface AbstractGraphics
Overrides:
rotate in class JavaGraphics

rotate

public void rotate(double theta,
                   double x,
                   double y)
Specified by:
rotate in interface AbstractGraphics
Overrides:
rotate in class JavaGraphics

getClipPlanes

public java.util.List<Plane> getClipPlanes()
Gets clip planes.

Returns:
clip planes

setBounds

public void setBounds(Rectangle2D bounds)
Sets rendered are bounds

Parameters:
bounds - area bounds

setEngine

public void setEngine(Engine3D engine)
Sets a 3D rendering engine

Parameters:
engine - 3D rendering engine