protected class AbstractMultiCurve.MultiCurveIterator extends GeneralPathXIterator
affine, path, pointIdx, typeIdx
Constructor and Description |
---|
MultiCurveIterator(java.awt.geom.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.
|
currentSegment3D
public MultiCurveIterator(java.awt.geom.AffineTransform at)
p
- The polygonat
- The affine transform applied to coordinates during
iterationpublic int getWindingRule()
getWindingRule
in interface java.awt.geom.PathIterator
getWindingRule
in class GeneralPathXIterator
WIND_EVEN_ODD
by default.PathIterator.WIND_EVEN_ODD
,
PathIterator.WIND_NON_ZERO
public void next()
GeneralPathXIterator
next
in interface java.awt.geom.PathIterator
next
in class GeneralPathXIterator
PathIterator.next()
public boolean isDone()
GeneralPathXIterator
isDone
in interface java.awt.geom.PathIterator
isDone
in class GeneralPathXIterator
PathIterator.isDone()
public int currentSegment(double[] coords)
GeneralPathXIterator
currentSegment
in interface java.awt.geom.PathIterator
currentSegment
in class GeneralPathXIterator
PathIterator.currentSegment(double[])
public int currentSegment(float[] coords)
GeneralPathXIterator
currentSegment
in interface java.awt.geom.PathIterator
currentSegment
in class GeneralPathXIterator
PathIterator.SEG_MOVETO
,
PathIterator.SEG_LINETO
,
PathIterator.SEG_QUADTO
,
PathIterator.SEG_CUBICTO
,
PathIterator.SEG_CLOSE