public class ShapeCollectionPathIterator
extends java.lang.Object
implements java.awt.geom.PathIterator
PathIterator which provides paths for a collection of Shapes.| Modifier and Type | Field and Description |
|---|---|
private java.awt.geom.AffineTransform |
affineTransform |
private java.awt.geom.PathIterator |
currentPathIterator |
private boolean |
done |
private java.util.Iterator |
shapeIterator |
| Constructor and Description |
|---|
ShapeCollectionPathIterator(java.util.Collection shapes,
java.awt.geom.AffineTransform affineTransform)
Creates a new path iterator for a collection of
Shapes. |
| Modifier and Type | Method and Description |
|---|---|
int |
currentSegment(double[] coords) |
int |
currentSegment(float[] coords) |
int |
getWindingRule() |
boolean |
isDone() |
void |
next() |
private java.util.Iterator shapeIterator
private java.awt.geom.PathIterator currentPathIterator
private java.awt.geom.AffineTransform affineTransform
private boolean done
public ShapeCollectionPathIterator(java.util.Collection shapes,
java.awt.geom.AffineTransform affineTransform)
Shapes.shapes - the Shapes in the collectionaffineTransform - a optional transformation to be applied to the coordinates in the path (may be null)public 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.PathIteratorpublic int currentSegment(float[] coords)
currentSegment in interface java.awt.geom.PathIteratorpublic int currentSegment(double[] coords)
currentSegment in interface java.awt.geom.PathIterator