public class PolygonShape extends Shape
Modifier and Type | Field and Description |
---|---|
private static int |
counter |
private static long |
serialVersionUID |
private GShape |
shape |
Constructor and Description |
---|
PolygonShape(java.util.List<Vector2D> vectors,
Vector3D position) |
Modifier and Type | Method and Description |
---|---|
Shape |
copy() |
Shape |
copyBaseForm() |
int |
getControlType(int index) |
GShape |
getGShape() |
java.lang.String |
getNameOfControl(int index) |
int |
getNumberOfControls() |
int |
getValue(int index) |
void |
recalculate()
Dummy - Nothing to recalculate
|
void |
setName(java.lang.String theValue)
Sets the name of this shape to name
|
void |
setShape(GShape shape) |
private static final long serialVersionUID
private GShape shape
private static int counter
public void setName(java.lang.String theValue)
name
- the namepublic int getValue(int index)
public void setShape(GShape shape)
public int getNumberOfControls()
getNumberOfControls
in interface Pluggable
getNumberOfControls
in class Shape
public int getControlType(int index)
getControlType
in interface Pluggable
getControlType
in class Shape
public java.lang.String getNameOfControl(int index)
getNameOfControl
in interface Pluggable
getNameOfControl
in class Shape
public void recalculate()
recalculate
in class Shape
public Shape copyBaseForm()
copyBaseForm
in class Shape