public abstract class AbstractJ2DRenderer extends java.lang.Object implements IJ2DRenderer
| Constructor and Description |
|---|
AbstractJ2DRenderer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
draw(DrawableCombiner dc,
Primitive primitive,
java.lang.Object obj,
ViewportJ2D vp)
Draws the primitive.
|
void |
prepareAndExecuteDraw(DrawableCombiner dc,
Primitive primitive,
java.lang.Object obj,
ViewportJ2D vp)
Prepares the object for rendering to a Java2D viewport
|
static boolean |
setupDCMatrix(DrawableCombiner dc,
java.lang.Object obj,
boolean enablePos,
boolean enableSize,
boolean enableRot,
ViewportJ2D vp)
Sets the basic matrix for the combiner, call can be skipped if alternative draw method is required.
|
protected boolean |
setupMatrix(DrawableCombiner dc,
Primitive primitive,
java.lang.Object obj,
java.awt.Graphics2D g,
IViewport vp)
Sets up the transformation matrix before drawing.
|
public final void prepareAndExecuteDraw(DrawableCombiner dc, Primitive primitive, java.lang.Object obj, ViewportJ2D vp)
prepareAndExecuteDraw in interface IJ2DRendererdc - the DrawableCombiner drawing the objectprimitive - the primitive being drawnobj - the object being drawnvp - the viewportpublic static final boolean setupDCMatrix(DrawableCombiner dc, java.lang.Object obj, boolean enablePos, boolean enableSize, boolean enableRot, ViewportJ2D vp)
obj - object being drawng - the viewport contextenablePos - enables position setupenableSize - enables size setupenableRot - enables rotation setupprotected boolean setupMatrix(DrawableCombiner dc, Primitive primitive, java.lang.Object obj, java.awt.Graphics2D g, IViewport vp)
obj - object being drawng - graphics contextpublic abstract void draw(DrawableCombiner dc, Primitive primitive, java.lang.Object obj, ViewportJ2D vp)
draw in interface IJ2DRendererdc - the DrawableCombiner drawing the objectprimitive - the primitive being drawnobj - the object being drawnvp - the viewport