public class MultiPathIterator
extends java.lang.Object
implements java.awt.geom.PathIterator
| Constructor and Description |
|---|
MultiPathIterator(java.util.Collection<? extends java.awt.Shape> shapes,
java.awt.geom.AffineTransform at)
Instantiates a new multi-path iterator.
|
| 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()
Returns the winding rule for determining the interior of the path.
|
boolean |
isDone()
Tests if the iteration is complete.
|
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.
|
public MultiPathIterator(java.util.Collection<? extends java.awt.Shape> shapes,
java.awt.geom.AffineTransform at)
shapes - the collection of shapesat - the affine transformpublic int currentSegment(double[] coords)
currentSegment in interface java.awt.geom.PathIteratorcoords - an array that holds the data returned from this methodpublic int currentSegment(float[] coords)
currentSegment in interface java.awt.geom.PathIteratorcoords - an array that holds the data returned from this methodpublic 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