|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjcckit.renderer.Graphics2DRenderer
Renderer who draws the GraphicalElements into a java.awt.Graphics2D context.
The default color for lines and texts is determined by the current color of the Graphics2D context when a new instance of Graphics2DRenderer is created.
The default font is SansSerif-12.
| Constructor Summary | |
Graphics2DRenderer()
|
|
| Method Summary | |
void |
finishRendering(GraphicalComposite composite)
Finishes rendering of the specified composite. |
Graphics2DRenderer |
init(java.awt.Graphics2D graphics)
Initializes this instance. |
void |
render(Oval oval)
Paints the specified oval into the current Graphics context. |
void |
render(Polygon polygon)
Paints the specified polygon into the Graphics2D context. |
void |
render(Rectangle rectangle)
Paints the specified rectangle into the current Graphics context. |
void |
render(Text text)
Paints the specified text into the current Graphics context. |
void |
startRendering(GraphicalComposite composite)
Starts rendering of the specified composite. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Graphics2DRenderer()
| Method Detail |
public Graphics2DRenderer init(java.awt.Graphics2D graphics)
graphics - Graphics2D context into which the
BaiscGraphicalElements are painted.
public void startRendering(GraphicalComposite composite)
ClippingShape. In this case the
Clip of the Graphics2D context becomes the clipping
rectangle determined by the bounding box of the ClippingShape.
startRendering in interface GraphicalCompositeRendererpublic void finishRendering(GraphicalComposite composite)
ClippingShape. In this case the
Clip of the Graphics2D context will be cleared.
finishRendering in interface GraphicalCompositeRendererpublic void render(Polygon polygon)
render in interface PolygonRendererpublic void render(Rectangle rectangle)
render in interface RectangleRendererpublic void render(Oval oval)
render in interface OvalRendererpublic void render(Text text)
If the font size is zero the default font size will be used.
If the orientation angle is unequal zero the text will first be painted into an off-screen image and rotated. Finally, it will be drawn into the current Graphics context. Note, that only integer multiples of 90 degree rotation are performed. Other orientation angles will be adjusted to the nearest integer multiple of 90 degree.
render in interface TextRenderer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||