public class StateRenderLayer extends java.lang.Object implements RenderLayer
| Constructor and Description |
|---|
StateRenderLayer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectClassPainter(java.lang.String className,
ObjectPainter op)
Adds a class that will paint objects that belong to a given OO-MDPclass.
|
void |
addSpecificObjectPainter(java.lang.String objectName,
ObjectPainter op)
Adds a painter that will be used to paint a specific object in states
|
void |
addStaticPainter(StaticPainter sp)
Adds a static painter for the domain.
|
void |
render(java.awt.Graphics2D g2,
float width,
float height) |
void |
updateState(State s)
Updates the state that needs to be painted
|
public void addStaticPainter(StaticPainter sp)
sp - the static painter to add.public void addObjectClassPainter(java.lang.String className,
ObjectPainter op)
className - the name of the class that the provided painter can paintop - the painterpublic void addSpecificObjectPainter(java.lang.String objectName,
ObjectPainter op)
objectName - the name of the object this painter is used to paintop - the painterpublic void updateState(State s)
s - the state to paintpublic void render(java.awt.Graphics2D g2,
float width,
float height)
render in interface RenderLayer