public class PolylineIterator
extends java.lang.Object
implements java.awt.geom.PathIterator
| Constructor and Description |
|---|
PolylineIterator(Polyline2D pl,
java.awt.geom.AffineTransform at)
Create a new iterator over the given polyline 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 PolylineIterator(Polyline2D pl, java.awt.geom.AffineTransform at)
public int currentSegment(double[] coords)
currentSegment in interface java.awt.geom.PathIteratorpublic int currentSegment(float[] coords)
currentSegment in interface java.awt.geom.PathIteratorpublic int getWindingRule()
getWindingRule in interface java.awt.geom.PathIteratorpublic boolean isDone()
isDone in interface java.awt.geom.PathIteratorpublic void next()
next in interface java.awt.geom.PathIterator