|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.tutorial.util.polygon.SubdividedPolygon
public class SubdividedPolygon
A subdivider that uses 4-point subdivision. For closed or open point sequences. It will be updated whenever the control point sequence changes.
Constructor Summary | |
---|---|
SubdividedPolygon(PointSequence controlPoints)
Create a SubdividedPolygon for a set of control points. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubdividedPolygon(PointSequence controlPoints)
controlPoints
- the control point sequence used for subdivision.Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |