|
||||||||||
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(javax.swing.event.ChangeListener cl)
|
double[][] |
getPoints()
returns the subdivided point sequence. |
boolean |
isClosed()
|
void |
removeChangeListener(javax.swing.event.ChangeListener cl)
|
void |
setSubdivisionLevel(int n)
Set the number of subdivision steps. |
void |
stateChanged(javax.swing.event.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(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public boolean isClosed()
isClosed
in interface PointSequence
public void addChangeListener(javax.swing.event.ChangeListener cl)
addChangeListener
in interface PointSequence
public void removeChangeListener(javax.swing.event.ChangeListener cl)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |