lt.monarch.chart.engine
Class JavaGraphics

java.lang.Object
  extended by lt.monarch.chart.engine.JavaGraphics
All Implemented Interfaces:
AbstractGraphics
Direct Known Subclasses:
Graphics3D, SVGGraphics

public class JavaGraphics
extends java.lang.Object
implements AbstractGraphics


Field Summary
Modifier and Type Field and Description
protected  java.awt.Graphics2D g
           
 
Constructor Summary
Constructor and Description
JavaGraphics(java.awt.Graphics2D g)
          Java Graphics2D
 
Method Summary
Modifier and Type Method and Description
 void addRenderingHints(java.util.Map<java.awt.RenderingHints.Key,java.lang.Object> map)
           
 void clip(java.awt.Shape shape)
           
 AbstractGraphics create()
           
 void dispose()
           
 void draw(Primitive shape)
           
 void drawChars(char[] data, int offset, int length, double x, double y)
           
 void drawImage(java.awt.Image bgImage, double x, double y, java.awt.Component observer)
           
 void drawImage(java.awt.Image bgImage, double x, double y, double width, double height, java.awt.Component observer)
           
 void drawString(java.lang.String text, double x, double y)
           
 void endScene(Chart<?> chart)
           
 void fill(Primitive shape)
           
 java.awt.Shape getClip()
           
 java.awt.Rectangle getClipBounds()
           
 java.awt.Color getColor()
           
 java.awt.Composite getComposite()
           
 java.awt.Font getFont()
           
 java.awt.FontMetrics getFontMetrics()
           
 java.awt.FontMetrics getFontMetrics(java.awt.Font font)
           
 java.awt.Graphics2D getGraphics2D()
           
 java.awt.Paint getPaint()
           
 java.awt.RenderingHints getRenderingHints()
           
 java.awt.Stroke getStroke()
           
 java.awt.geom.AffineTransform getTransform()
           
 void renderScene(double width, double height)
           
 void rotate(double theta)
           
 void rotate(double theta, double x, double y)
           
 void scale(double sx, double sy)
           
 void setClip(java.awt.Shape shape)
           
 void setColor(java.awt.Color color)
           
 void setComposite(java.awt.Composite composite)
           
 void setFont(java.awt.Font font)
           
 void setGraphics(java.awt.Graphics2D g)
           
 void setPaint(java.awt.Paint paint)
           
 void setPaintMode()
           
 void setRenderingHints(java.awt.RenderingHints hints)
           
 void setStroke(java.awt.Stroke stroke)
           
 void setTransform(java.awt.geom.AffineTransform transform)
           
 void setXORMode(java.awt.Color color)
           
 void startScene(Chart<?> chart)
           
 void transform(java.awt.geom.AffineTransform transform)
           
 void translate(double x, double y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

g

protected java.awt.Graphics2D g
Constructor Detail

JavaGraphics

public JavaGraphics(java.awt.Graphics2D g)
Java Graphics2D

Method Detail

draw

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

fill

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

getColor

public java.awt.Color getColor()
Specified by:
getColor in interface AbstractGraphics

getFont

public java.awt.Font getFont()
Specified by:
getFont in interface AbstractGraphics

getStroke

public java.awt.Stroke getStroke()
Specified by:
getStroke in interface AbstractGraphics

setColor

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

setFont

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

setStroke

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

create

public AbstractGraphics create()
Specified by:
create in interface AbstractGraphics

drawImage

public void drawImage(java.awt.Image bgImage,
                      double x,
                      double y,
                      java.awt.Component observer)
Specified by:
drawImage in interface AbstractGraphics

drawImage

public void drawImage(java.awt.Image bgImage,
                      double x,
                      double y,
                      double width,
                      double height,
                      java.awt.Component observer)
Specified by:
drawImage in interface AbstractGraphics

setRenderingHints

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

setComposite

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

getComposite

public java.awt.Composite getComposite()
Specified by:
getComposite in interface AbstractGraphics

addRenderingHints

public void addRenderingHints(java.util.Map<java.awt.RenderingHints.Key,java.lang.Object> map)
Specified by:
addRenderingHints in interface AbstractGraphics

translate

public void translate(double x,
                      double y)
Specified by:
translate in interface AbstractGraphics

setXORMode

public void setXORMode(java.awt.Color color)
Specified by:
setXORMode in interface AbstractGraphics

drawString

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

getTransform

public java.awt.geom.AffineTransform getTransform()
Specified by:
getTransform in interface AbstractGraphics

setTransform

public void setTransform(java.awt.geom.AffineTransform transform)
Specified by:
setTransform in interface AbstractGraphics

transform

public void transform(java.awt.geom.AffineTransform transform)
Specified by:
transform in interface AbstractGraphics

getFontMetrics

public java.awt.FontMetrics getFontMetrics()
Specified by:
getFontMetrics in interface AbstractGraphics

getFontMetrics

public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
Specified by:
getFontMetrics in interface AbstractGraphics

getClipBounds

public java.awt.Rectangle getClipBounds()
Specified by:
getClipBounds in interface AbstractGraphics

setPaintMode

public void setPaintMode()
Specified by:
setPaintMode in interface AbstractGraphics

getGraphics2D

public java.awt.Graphics2D getGraphics2D()
Specified by:
getGraphics2D in interface AbstractGraphics

dispose

public void dispose()
Specified by:
dispose in interface AbstractGraphics

clip

public void clip(java.awt.Shape shape)
Specified by:
clip in interface AbstractGraphics

getClip

public java.awt.Shape getClip()
Specified by:
getClip in interface AbstractGraphics

setClip

public void setClip(java.awt.Shape shape)
Specified by:
setClip in interface AbstractGraphics

getPaint

public java.awt.Paint getPaint()
Specified by:
getPaint in interface AbstractGraphics

setPaint

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

getRenderingHints

public java.awt.RenderingHints getRenderingHints()
Specified by:
getRenderingHints in interface AbstractGraphics

rotate

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

scale

public void scale(double sx,
                  double sy)
Specified by:
scale in interface AbstractGraphics

drawChars

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

setGraphics

public void setGraphics(java.awt.Graphics2D g)
Specified by:
setGraphics in interface AbstractGraphics

rotate

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

renderScene

public void renderScene(double width,
                        double height)
Specified by:
renderScene in interface AbstractGraphics

endScene

public void endScene(Chart<?> chart)
Specified by:
endScene in interface AbstractGraphics

startScene

public void startScene(Chart<?> chart)
Specified by:
startScene in interface AbstractGraphics