jadex.application.space.envsupport.observer.graphics.drawable
Class AbstractVisual2D

java.lang.Object
  extended by jadex.application.space.envsupport.observer.graphics.drawable.AbstractVisual2D
Direct Known Subclasses:
DrawableCombiner, Primitive

public class AbstractVisual2D
extends Object

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

AbstractVisual2D

public AbstractVisual2D()
Initializes the members with default values.


AbstractVisual2D

public AbstractVisual2D(Object position,
                        Object rotation,
                        Object size)
Initializes the members with default values.

Method Detail

setPosition

public void setPosition(IVector2 pos)
Sets the position of the visual to a fixed position.

Parameters:
pos - fixed position

setRotation

public void setRotation(IVector3 rotation)
Sets the rotation of the visual to a fixed rotation.

Parameters:
rotation - the fixed rotation

setSize

public void setSize(IVector2 size)
Sets the size (scale) of the visual to a fixed size.

Parameters:
size - fixed size

bindPosition

public void bindPosition(String propId)
Binds the position of the visual to an object property.

Parameters:
propId - the property ID

bindRotation

public void bindRotation(String propId)
Binds the z-rotation of the visual to an object property. (alias for bindZRotation)

Parameters:
propId - the property ID

bindSize

public void bindSize(String propId)
Binds the size of the visual to an object property.

Parameters:
propId - the property ID

getSize

public Object getSize()
Get the size.

Returns:
the size.

getRotation

public Object getRotation()
Get the rotation.

Returns:
the rotation.

getPosition

public Object getPosition()
Get the position.

Returns:
the position.


Copyright © 2010. All Rights Reserved.