public class SubdividedPolygon extends Object implements ChangeListener, PointSequence
Constructor and Description |
---|
SubdividedPolygon(PointSequence controlPoints)
Create a SubdividedPolygon for a set of control points.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener cl) |
double[][] |
getPoints()
returns the subdivided point sequence.
|
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 void setSubdivisionLevel(int n)
n
- number of stepspublic double[][] getPoints()
getPoints
in interface PointSequence
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public boolean isClosed()
isClosed
in interface PointSequence
public void addChangeListener(ChangeListener cl)
addChangeListener
in interface PointSequence
public void removeChangeListener(ChangeListener cl)