Class AbstractVisual2D
- java.lang.Object
- 
- jadex.extension.envsupport.observer.graphics.drawable.AbstractVisual2D
 
- 
- Direct Known Subclasses:
- DrawableCombiner,- Primitive
 
 public class AbstractVisual2D extends java.lang.ObjectBase class for visual elements.
- 
- 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindPosition(java.lang.String propId)Binds the position of the visual to an object property.voidbindRotation(java.lang.String propId)Binds the z-rotation of the visual to an object property.voidbindSize(java.lang.String propId)Binds the size of the visual to an object property.java.lang.ObjectgetPosition()Get the position.java.lang.ObjectgetRotation()Get the rotation.java.lang.ObjectgetSize()Get the size.voidsetPosition(IVector2 pos)Sets the position of the visual to a fixed position.voidsetRotation(IVector3 rotation)Sets the rotation of the visual to a fixed rotation.voidsetSize(IVector2 size)Sets the size (scale) of the visual to a fixed size.
 
- 
- 
- 
Method Detail- 
setPositionpublic void setPosition(IVector2 pos) Sets the position of the visual to a fixed position.- Parameters:
- pos- fixed position
 
 - 
setRotationpublic void setRotation(IVector3 rotation) Sets the rotation of the visual to a fixed rotation.- Parameters:
- rotation- the fixed rotation
 
 - 
setSizepublic void setSize(IVector2 size) Sets the size (scale) of the visual to a fixed size.- Parameters:
- size- fixed size
 
 - 
bindPositionpublic void bindPosition(java.lang.String propId) Binds the position of the visual to an object property.- Parameters:
- propId- the property ID
 
 - 
bindRotationpublic void bindRotation(java.lang.String propId) Binds the z-rotation of the visual to an object property. (alias for bindZRotation)- Parameters:
- propId- the property ID
 
 - 
bindSizepublic void bindSize(java.lang.String propId) Binds the size of the visual to an object property.- Parameters:
- propId- the property ID
 
 - 
getSizepublic java.lang.Object getSize() Get the size.- Returns:
- the size.
 
 - 
getRotationpublic java.lang.Object getRotation() Get the rotation.- Returns:
- the rotation.
 
 - 
getPositionpublic java.lang.Object getPosition() Get the position.- Returns:
- the position.
 
 
- 
 
-