jadex.application.space.envsupport.observer.graphics.drawable
Class RegularPolygon
java.lang.Object
jadex.application.space.envsupport.observer.graphics.drawable.AbstractVisual2D
jadex.application.space.envsupport.observer.graphics.drawable.Primitive
jadex.application.space.envsupport.observer.graphics.drawable.RegularPolygon
public class RegularPolygon
- extends Primitive
| 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 |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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-bindingxrotation - xrotation or rotation-bindingyrotation - yrotation or rotation-bindingzrotation - zrotation or rotation-bindingsize - size or size-bindingabsFlags - flags for setting position, size and rotation as absolutesc - the drawable's color or bindingvertices - number of vertices (corners)
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.