public class SubdividedPolygon extends Object implements PointSequence, ChangeListener
Constructor and Description |
---|
SubdividedPolygon(PointSequence controlPoints)
Create a SubdividedPolygon for a set of control points.
|
SubdividedPolygon(PointSequence controlPoints,
int subdivisonsteps)
Create a SubdividedPolygon for a set of control points.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener cl) |
SceneGraphComponent |
getBase() |
double[][] |
getPoints() |
boolean |
isClosed() |
void |
removeChangeListener(ChangeListener cl) |
void |
setSubdivisionLevel(int n)
Set the number of subdivision steps.
|
void |
stateChanged(ChangeEvent e)
this is called from the control point sequence.
|
public SubdividedPolygon(PointSequence controlPoints)
controlPoints
- the control point sequence used for subdivision.public SubdividedPolygon(PointSequence controlPoints, int subdivisonsteps)
controlPoints
- the control point sequence used for subdivision.public void setSubdivisionLevel(int n)
n
- number of stepspublic void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public void addChangeListener(ChangeListener cl)
addChangeListener
in interface PointSequence
public void removeChangeListener(ChangeListener cl)
public double[][] getPoints()
getPoints
in interface PointSequence
public boolean isClosed()
isClosed
in interface PointSequence
public SceneGraphComponent getBase()