|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.java2d.PolygonIterator
public class PolygonIterator
An iterator over Polygon2D. This class is private to this package.
Field Summary | |
---|---|
private double[] |
_coords
The transformed coordinates being iterated. |
private boolean |
_done
The flag saying we are already done |
private int |
_index
The current coordinate index. |
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 | |
---|---|
PolygonIterator(Polygon2D pl,
java.awt.geom.AffineTransform at)
Create a new iterator over the given polygon and with the given transform. |
Method Summary | |
---|---|
int |
currentSegment(double[] coords)
Get the current segment |
int |
currentSegment(float[] coords)
Get the current segment |
int |
getWindingRule()
Return the winding rule. |
boolean |
isDone()
Test if the iterator is done. |
void |
next()
Move the iterator along by one point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double[] _coords
private int _index
private boolean _done
Constructor Detail |
---|
public PolygonIterator(Polygon2D pl, java.awt.geom.AffineTransform at)
Method Detail |
---|
public int currentSegment(double[] coords)
currentSegment
in interface java.awt.geom.PathIterator
public int currentSegment(float[] coords)
currentSegment
in interface java.awt.geom.PathIterator
public int getWindingRule()
getWindingRule
in interface java.awt.geom.PathIterator
public boolean isDone()
isDone
in interface java.awt.geom.PathIterator
public void next()
next
in interface java.awt.geom.PathIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |