public class PointIterator extends GeneralPathXIterator
Geometryaffine, path, pointIdx, typeIdxSEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO| Constructor and Description |
|---|
PointIterator(Point2D p,
AffineTransform at)
Creates a new PointIterator object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
currentSegment(double[] coords)
Returns the coordinates and type of the current path segment in
the iteration.
|
int |
currentSegment(float[] coords)
Returns the coordinates and type of the current path segment in
the iteration.
|
int |
getWindingRule()
Return the winding rule for determining the interior of the path.
|
boolean |
isDone()
Tests if there are more points to read.
|
void |
next()
Moves the iterator to the next segment of the path forwards
along the primary direction of traversal as long as there are
more points in that direction.
|
currentSegment3Dpublic PointIterator(Point2D p, AffineTransform at)
p - The polygonat - The affine transform applied to coordinates during iterationpublic int getWindingRule()
getWindingRule in interface PathIteratorgetWindingRule in class GeneralPathXIteratorWIND_EVEN_ODD by default.PathIterator.WIND_EVEN_ODD,
PathIterator.WIND_NON_ZEROpublic void next()
GeneralPathXIteratornext in interface PathIteratornext in class GeneralPathXIteratorPathIterator.next()public boolean isDone()
GeneralPathXIteratorisDone in interface PathIteratorisDone in class GeneralPathXIteratorPathIterator.isDone()public int currentSegment(double[] coords)
GeneralPathXIteratorcurrentSegment in interface PathIteratorcurrentSegment in class GeneralPathXIteratorPathIterator.currentSegment(double[])public int currentSegment(float[] coords)
GeneralPathXIteratorcurrentSegment in interface PathIteratorcurrentSegment in class GeneralPathXIteratorPathIterator.SEG_MOVETO,
PathIterator.SEG_LINETO,
PathIterator.SEG_QUADTO,
PathIterator.SEG_CUBICTO,
PathIterator.SEG_CLOSE