Package org.locationtech.jts.awt
Class ShapeCollectionPathIterator
java.lang.Object
org.locationtech.jts.awt.ShapeCollectionPathIterator
- All Implemented Interfaces:
PathIterator
A
PathIterator
which provides paths for a collection of Shape
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AffineTransform
private PathIterator
private boolean
private Iterator
Fields inherited from interface java.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
-
Constructor Summary
ConstructorsConstructorDescriptionShapeCollectionPathIterator
(Collection shapes, AffineTransform affineTransform) Creates a new path iterator for a collection ofShape
s. -
Method Summary
Modifier and TypeMethodDescriptionint
currentSegment
(double[] coords) int
currentSegment
(float[] coords) int
boolean
isDone()
void
next()
-
Field Details
-
shapeIterator
-
currentPathIterator
-
affineTransform
-
done
private boolean done
-
-
Constructor Details
-
ShapeCollectionPathIterator
Creates a new path iterator for a collection ofShape
s.- Parameters:
shapes
- the Shapes in the collectionaffineTransform
- a optional transformation to be applied to the coordinates in the path (may be null)
-
-
Method Details
-
getWindingRule
public int getWindingRule()- Specified by:
getWindingRule
in interfacePathIterator
-
isDone
public boolean isDone()- Specified by:
isDone
in interfacePathIterator
-
next
public void next()- Specified by:
next
in interfacePathIterator
-
currentSegment
public int currentSegment(float[] coords) - Specified by:
currentSegment
in interfacePathIterator
-
currentSegment
public int currentSegment(double[] coords) - Specified by:
currentSegment
in interfacePathIterator
-