public class CIMGeometricEffectRegularPolygon extends CIMGeometricEffect
| Constructor and Description |
|---|
CIMGeometricEffectRegularPolygon() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(JSONObject jsonObject)
Deserializes this object from its JSON representation.
|
static CIMGeometricEffectRegularPolygon |
fromJSON(java.lang.String json)
Creates the object with a specified state from a JSON encoding.
|
double |
getAngle()
Gets the amount of rotation for the polygon.
|
int |
getEdges()
Gets the number of sides for the polygon.
|
double |
getRadius()
Gets the distance from the center of the polygon.
|
void |
serialize(JSONObject jsonObject)
Serializes this object to its JSON representation.
|
void |
setAngle(double angle)
Sets the amount of rotation for the polygon.
|
void |
setEdges(int edges)
Sets the number of sides for the polygon.
|
void |
setRadius(double radius)
Sets the distance from the center of the polygon.
|
java.lang.String |
toJSON()
Creates a JSON encoding of the object and its current state.
|
getPrimitiveName, setPrimitiveNamepublic double getAngle()
public void setAngle(double angle)
public int getEdges()
public void setEdges(int edges)
public double getRadius()
public void setRadius(double radius)
public static CIMGeometricEffectRegularPolygon fromJSON(java.lang.String json) throws CIMJSONException
CIMJSONExceptionpublic java.lang.String toJSON()
public void deserialize(JSONObject jsonObject) throws CIMJSONException
deserialize in class CIMGeometricEffectCIMJSONExceptionpublic void serialize(JSONObject jsonObject)
serialize in class CIMGeometricEffect