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