public class AbstractVisual2D extends Object
Constructor and Description |
---|
AbstractVisual2D()
Initializes the members with default values.
|
AbstractVisual2D(Object position,
Object rotation,
Object size)
Initializes the members with default values.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public AbstractVisual2D()
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()
Copyright © 2012. All Rights Reserved.