|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.esom.renderer.foreground.ForegroundRenderer
public abstract class ForegroundRenderer
Base class for all foreground renderers.
Field Summary | |
---|---|
protected java.awt.Color |
favoriteColor
the color to choose if none is given |
protected ForegroundTool |
foregroundTool
points to the foregroundTool. |
static int |
RENDER_MASK
Indicates that a Foreground wants to be renderered at the very end. |
static int |
RENDER_POSTTILE
Indicates that a Foreground wants to be renderered after tiling the image is tiled. |
static int |
RENDER_PRETILE
Indicates that a Foreground wants to be renderered before the image is tiled. |
protected Renderer |
renderer
points on main renderer |
Constructor Summary | |
---|---|
ForegroundRenderer()
Standard constructor. |
Method Summary | |
---|---|
java.awt.Color |
getFavoriteColor()
Get the favorite Color |
ForegroundTool |
getForegroundTool()
|
java.lang.String |
getName()
Get the name by removing the "Renderer" from the class name. |
Renderer |
getRenderer()
Get the renderer |
abstract int |
getRndLayer()
Determines which foreground is renderered first. |
abstract int |
getRndPosition()
|
void |
init()
Optional initialization of foreground renderer. |
abstract void |
render(Renderer renderer)
Add foreground to the Image taken from the given renderer. |
void |
setFavoriteColor(java.awt.Color color)
Set the favourite color. |
void |
setForegroundTool(ForegroundTool foregroundTool)
|
void |
setRenderer(Renderer renderer)
Set the renderer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RENDER_PRETILE
public static final int RENDER_POSTTILE
public static final int RENDER_MASK
protected Renderer renderer
protected ForegroundTool foregroundTool
protected java.awt.Color favoriteColor
Constructor Detail |
---|
public ForegroundRenderer()
Method Detail |
---|
public abstract void render(Renderer renderer)
renderer
- The invoking Rendererpublic void init()
public void setFavoriteColor(java.awt.Color color)
color
- The color to set.public java.awt.Color getFavoriteColor()
public ForegroundTool getForegroundTool()
public void setForegroundTool(ForegroundTool foregroundTool)
foregroundTool
- The foregroundTool to set.public Renderer getRenderer()
public void setRenderer(Renderer renderer)
renderer
- The renderer to set.public abstract int getRndPosition()
public abstract int getRndLayer()
public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |