public class ShapeCollectionPathIterator extends Object implements PathIterator
PathIterator
which provides paths for a collection of Shape
s.SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
Constructor and Description |
---|
ShapeCollectionPathIterator(Collection shapes,
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() |
public ShapeCollectionPathIterator(Collection shapes, 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 PathIterator
public boolean isDone()
isDone
in interface PathIterator
public void next()
next
in interface PathIterator
public int currentSegment(float[] coords)
currentSegment
in interface PathIterator
public int currentSegment(double[] coords)
currentSegment
in interface PathIterator
Copyright © 2022. All rights reserved.