public class PolygonIterator
extends java.lang.Object
implements java.awt.geom.PathIterator
Constructor and Description |
---|
PolygonIterator(Polygon2D pl,
java.awt.geom.AffineTransform at)
Create a new iterator over the given polygon and
with the given transform.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public PolygonIterator(Polygon2D pl, java.awt.geom.AffineTransform at)
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