Class RegularPolygon
- java.lang.Object
-
- jadex.extension.envsupport.observer.graphics.drawable.AbstractVisual2D
-
- jadex.extension.envsupport.observer.graphics.drawable.Primitive
-
- jadex.extension.envsupport.observer.graphics.drawable.RegularPolygon
-
public class RegularPolygon extends Primitive
-
-
Field Summary
-
Fields inherited from class jadex.extension.envsupport.observer.graphics.drawable.Primitive
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, color_, drawcondition, enableDCPos, enableDCRot, enableDCSize, halign, PRIMITIVE_TYPE_ELLIPSE, PRIMITIVE_TYPE_RECTANGLE, PRIMITIVE_TYPE_REGULARPOLYGON, PRIMITIVE_TYPE_TEXT, PRIMITIVE_TYPE_TEXTUREDRECTANGLE, PRIMITIVE_TYPE_TRIANGLE, renderinfos, type, valign
-
-
Constructor Summary
Constructors Constructor Description RegularPolygon()
Generates a size 1.0 triangle.RegularPolygon(java.lang.Object position, java.lang.Object rotation, java.lang.Object size, int absFlags, java.lang.Object c, int vertices, IParsedExpression drawcondition)
Generates a new RegularPolygon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getVertexCount()
Returns the vertex count.void
setType(int type)
Set the primitive type (Disabled).-
Methods inherited from class jadex.extension.envsupport.observer.graphics.drawable.Primitive
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, flushRenderInfo, getColor, getDrawCondition, getHAlign, getRenderInfo, getType, getVAlign, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setDrawCondition, setHAlign, setRenderInfo, setVAlign
-
Methods inherited from class jadex.extension.envsupport.observer.graphics.drawable.AbstractVisual2D
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
-
-
-
-
Constructor Detail
-
RegularPolygon
public RegularPolygon()
Generates a size 1.0 triangle.
-
RegularPolygon
public RegularPolygon(java.lang.Object position, java.lang.Object rotation, java.lang.Object size, int absFlags, java.lang.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)
-
-