|
||||||||||
| 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
public class AbstractVisual2D
Base class for visual elements.
| Constructor Summary | |
|---|---|
AbstractVisual2D()
Initializes the members with default values. |
|
AbstractVisual2D(Object position,
Object rotation,
Object size)
Initializes the members with default values. |
|
| Method Summary | |
|---|---|
void |
bindPosition(String propId)
Binds the position of the visual to an object property. |
void |
bindRotation(String propId)
Binds the z-rotation of the visual to an object property. |
void |
bindSize(String propId)
Binds the size of the visual to an object property. |
Object |
getPosition()
Get the position. |
Object |
getRotation()
Get the rotation. |
Object |
getSize()
Get the size. |
void |
setPosition(IVector2 pos)
Sets the position of the visual to a fixed position. |
void |
setRotation(IVector3 rotation)
Sets the rotation of the visual to a fixed rotation. |
void |
setSize(IVector2 size)
Sets the size (scale) of the visual to a fixed size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractVisual2D()
public AbstractVisual2D(Object position,
Object rotation,
Object size)
| Method Detail |
|---|
public void setPosition(IVector2 pos)
pos - fixed positionpublic void setRotation(IVector3 rotation)
rotation - the fixed rotationpublic void setSize(IVector2 size)
size - fixed sizepublic void bindPosition(String propId)
propId - the property IDpublic void bindRotation(String propId)
propId - the property IDpublic void bindSize(String propId)
propId - the property IDpublic Object getSize()
public Object getRotation()
public Object getPosition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||