|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.friend.graphics.ConvexPolygonIterator
public class ConvexPolygonIterator
ConvexPolygonIterator
implements the PathIterator
interface for ConvexPolygon
. Changes on the corresponding
instance of ConvexPolygon
during the iteration are currently
not supported!
Field Summary |
---|
Fields inherited from interface java.awt.geom.PathIterator |
---|
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO |
Constructor Summary | |
---|---|
ConvexPolygonIterator(ConvexPolygon source)
Constructor yielding an instance that iterates along the given polygon. |
Method Summary | |
---|---|
int |
currentSegment(double[] values)
Fills the array with coordinates and returns the type of the current segment. |
int |
currentSegment(float[] values)
Fills the array with coordinates and returns the type of the current segment. |
int |
getWindingRule()
Returns the winding rule for determining the interior of the path. |
boolean |
isDone()
Returns true iff the end of the iteration is reached. |
void |
next()
Moves the iterator to the next segment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvexPolygonIterator(ConvexPolygon source)
source
- Instance of ConvexPolygon
this
iterator will use.Method Detail |
---|
public int currentSegment(double[] values)
currentSegment
in interface PathIterator
values
- The array that will be filled with
coordinates of the current segment.
PathIterator
public int currentSegment(float[] values)
currentSegment
in interface PathIterator
values
- The array that will be filled with
coordinates of the current segment.
PathIterator
public int getWindingRule()
getWindingRule
in interface PathIterator
PathIterator
public boolean isDone()
isDone
in interface PathIterator
public void next()
next
in interface PathIterator
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |