public class ShapeCollectionPathIterator
extends java.lang.Object
implements java.awt.geom.PathIterator
PathIterator
which provides paths for a collection of Shape
s.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
Shape s. |
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)
Shape
s.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.PathIterator
public boolean isDone()
isDone
in interface java.awt.geom.PathIterator
public void next()
next
in interface java.awt.geom.PathIterator
public int currentSegment(float[] coords)
currentSegment
in interface java.awt.geom.PathIterator
public int currentSegment(double[] coords)
currentSegment
in interface java.awt.geom.PathIterator