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 PluggablegetNumberOfControls in class Shapepublic int getControlType(int index)
getControlType in interface PluggablegetControlType in class Shapepublic java.lang.String getNameOfControl(int index)
getNameOfControl in interface PluggablegetNameOfControl in class Shapepublic void recalculate()
recalculate in class Shapepublic Shape copyBaseForm()
copyBaseForm in class Shape