|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.application.space.envsupport.observer.graphics.java2d.AbstractJ2DRenderer
public abstract class AbstractJ2DRenderer
| Constructor Summary | |
|---|---|
AbstractJ2DRenderer()
|
|
| Method Summary | |
|---|---|
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. |
protected boolean |
setupMatrix(DrawableCombiner dc,
Primitive primitive,
Object obj,
Graphics2D g,
IViewport vp)
Sets up the transformation matrix before drawing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractJ2DRenderer()
| Method Detail |
|---|
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 viewport
public 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 setup
protected boolean setupMatrix(DrawableCombiner dc,
Primitive primitive,
Object obj,
Graphics2D g,
IViewport vp)
obj - object being drawng - graphics context
public 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 viewport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||