public class RegularPolygon extends 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 and 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getVertexCount()
Returns the vertex count.
|
void |
setType(int type)
Set the primitive type (Disabled).
|
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, flushRenderInfo, getColor, getDrawCondition, getHAlign, getRenderInfo, getType, getVAlign, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setDrawCondition, setHAlign, setRenderInfo, setVAlignbindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSizepublic 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)
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)