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

java.lang.Object
  extended by jadex.application.space.envsupport.observer.graphics.drawable.AbstractVisual2D
      extended by jadex.application.space.envsupport.observer.graphics.drawable.Primitive
          extended by jadex.application.space.envsupport.observer.graphics.drawable.TexturedRectangle

public class TexturedRectangle
extends Primitive


Field Summary
protected  String texturePath_
          Texture path.
 
Fields inherited from class jadex.application.space.envsupport.observer.graphics.drawable.Primitive
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, color_, drawcondition, enableDCPos, enableDCRot, enableDCSize, PRIMITIVE_TYPE_ELLIPSE, PRIMITIVE_TYPE_RECTANGLE, PRIMITIVE_TYPE_REGULARPOLYGON, PRIMITIVE_TYPE_TEXT, PRIMITIVE_TYPE_TEXTUREDRECTANGLE, PRIMITIVE_TYPE_TRIANGLE, renderinfos, type
 
Constructor Summary
TexturedRectangle(Object position, Object rotation, Object size, int absFlags, Object c, String texturePath, IParsedExpression drawcondition)
          Creates a new TexturedRectangle drawable.
TexturedRectangle(String texturePath)
          Creates default TexturedRectangle.
 
Method Summary
 String getTexturePath()
          Returns the texture path.
 void setType(int type)
          Set the primitive type (Disabled).
 
Methods inherited from class jadex.application.space.envsupport.observer.graphics.drawable.Primitive
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, flushRenderInfo, getColor, getDrawCondition, getRenderInfo, getType, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setDrawCondition, setRenderInfo
 
Methods inherited from class jadex.application.space.envsupport.observer.graphics.drawable.AbstractVisual2D
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

texturePath_

protected String texturePath_
Texture path.

Constructor Detail

TexturedRectangle

public TexturedRectangle(String texturePath)
Creates default TexturedRectangle.

Parameters:
texturePath - resource path of the texture

TexturedRectangle

public TexturedRectangle(Object position,
                         Object rotation,
                         Object size,
                         int absFlags,
                         Object c,
                         String texturePath,
                         IParsedExpression drawcondition)
Creates a new TexturedRectangle drawable.

Parameters:
position - position or position-binding
xrotation - xrotation or rotation-binding
yrotation - yrotation or rotation-binding
zrotation - zrotation or rotation-binding
size - size or size-binding
absFlags - flags for setting position, size and rotation as absolutes
c - modulation color or binding
texturePath - resource path of the texture
Method Detail

setType

public void setType(int type)
Set the primitive type (Disabled).

Overrides:
setType in class Primitive
Parameters:
type - The type to set.

getTexturePath

public String getTexturePath()
Returns the texture path.

Returns:
The texture path.


Copyright © 2010. All Rights Reserved.