public abstract class AbstractJ2DRenderer extends Object implements IJ2DRenderer
| Constructor and Description |
|---|
AbstractJ2DRenderer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
draw(DrawableCombiner dc,
Primitive primitive,
Object obj,
ViewportJ2D vp)
Draws the primitive.
|
void |
prepareAndExecuteDraw(DrawableCombiner dc,
Primitive primitive,
Object obj,
ViewportJ2D vp)
Prepares the object for rendering to a Java2D viewport
|
static boolean |
setupDCMatrix(DrawableCombiner dc,
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.
|
public final void prepareAndExecuteDraw(DrawableCombiner dc, Primitive primitive, 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, 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 setuppublic abstract void draw(DrawableCombiner dc, Primitive primitive, Object obj, ViewportJ2D vp)
draw in interface IJ2DRendererdc - the DrawableCombiner drawing the objectprimitive - the primitive being drawnobj - the object being drawnvp - the viewportCopyright © 2012. All Rights Reserved.