|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.application.space.envsupport.observer.graphics.drawable.AbstractVisual2D
jadex.application.space.envsupport.observer.graphics.drawable.DrawableCombiner
public class DrawableCombiner
This drawable combines multiple drawables into a single drawable object.
| Field Summary | |
|---|---|
protected Map |
properties
The properties |
| Constructor Summary | |
|---|---|
DrawableCombiner()
Creates a new DrawableCombiner of size 1.0. |
|
DrawableCombiner(Object position,
Object rotation,
Object size)
Creates a new DrawableCombiner of size 1.0. |
|
| Method Summary | |
|---|---|
void |
addPrimitive(Primitive p)
Adds a primitive to the combiner. |
void |
addPrimitive(Primitive p,
int layer)
Adds a primitive to the combiner in a specific layer. |
void |
draw(Object obj,
Integer layer,
IViewport vp)
Draws the objects to a viewport |
void |
flushRenderInfo()
Flushes the render information. |
Object |
getBoundValue(Object obj,
Object prop,
IViewport viewport)
Gets the bound value for a property. |
Set |
getLayers()
Returns all layers used by this DrawableCombiner. |
Object |
getProperty(String name)
Returns a property. |
Set |
getPropertyNames()
Returns all of the properties. |
boolean |
hasProperty(String name)
|
void |
removePrimitive(Primitive p)
Removes a primitive from all layers in the combiner. |
void |
setProperty(String name,
Object value)
Sets a property |
| Methods inherited from class jadex.application.space.envsupport.observer.graphics.drawable.AbstractVisual2D |
|---|
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map properties
| Constructor Detail |
|---|
public DrawableCombiner()
public DrawableCombiner(Object position,
Object rotation,
Object size)
| Method Detail |
|---|
public void addPrimitive(Primitive p)
p - the primitive
public void addPrimitive(Primitive p,
int layer)
p - the primitivelayer - the layersizeDefining - true if the added object should be the size-defining
onepublic void removePrimitive(Primitive p)
p - the primitive
public void draw(Object obj,
Integer layer,
IViewport vp)
obj - object being drawnlayer - the current layervp - the viewportpublic Set getLayers()
public void flushRenderInfo()
public Object getBoundValue(Object obj,
Object prop,
IViewport viewport)
public Object getProperty(String name)
getProperty in interface IPropertyObjectname - name of the property
public Set getPropertyNames()
getPropertyNames in interface IPropertyObject
public void setProperty(String name,
Object value)
setProperty in interface IPropertyObjectname - name of the propertyvalue - value of the propertypublic boolean hasProperty(String name)
hasProperty in interface IPropertyObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||