public class AbstractVisual2D
extends java.lang.Object
Constructor and Description |
---|
AbstractVisual2D()
Initializes the members with default values.
|
AbstractVisual2D(java.lang.Object position,
java.lang.Object rotation,
java.lang.Object size)
Initializes the members with default values.
|
Modifier and Type | Method and Description |
---|---|
void |
bindPosition(java.lang.String propId)
Binds the position of the visual to an object property.
|
void |
bindRotation(java.lang.String propId)
Binds the z-rotation of the visual to an object property.
|
void |
bindSize(java.lang.String propId)
Binds the size of the visual to an object property.
|
java.lang.Object |
getPosition()
Get the position.
|
java.lang.Object |
getRotation()
Get the rotation.
|
java.lang.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.
|
public AbstractVisual2D()
public AbstractVisual2D(java.lang.Object position, java.lang.Object rotation, java.lang.Object size)
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(java.lang.String propId)
propId
- the property IDpublic void bindRotation(java.lang.String propId)
propId
- the property IDpublic void bindSize(java.lang.String propId)
propId
- the property IDpublic java.lang.Object getSize()
public java.lang.Object getRotation()
public java.lang.Object getPosition()