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

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.RegularPolygon

public class RegularPolygon
extends Primitive


Field Summary
 
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
RegularPolygon()
          Generates a size 1.0 triangle.
RegularPolygon(Object position, Object rotation, Object size, int absFlags, Object c, int vertices, IParsedExpression drawcondition)
          Generates a new RegularPolygon.
 
Method Summary
 int getVertexCount()
          Returns the vertex count.
 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
 

Constructor Detail

RegularPolygon

public RegularPolygon()
Generates a size 1.0 triangle.


RegularPolygon

public RegularPolygon(Object position,
                      Object rotation,
                      Object size,
                      int absFlags,
                      Object c,
                      int vertices,
                      IParsedExpression drawcondition)
Generates a new RegularPolygon.

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 - the drawable's color or binding
vertices - number of vertices (corners)
Method Detail

setType

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

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

getVertexCount

public int getVertexCount()
Returns the vertex count.

Returns:
The vertex count.


Copyright © 2010. All Rights Reserved.