Class ShapeCollectionPathIterator
java.lang.Object
org.locationtech.jts.awt.ShapeCollectionPathIterator
- All Implemented Interfaces:
PathIterator
A
PathIterator which provides paths for a collection of Shapes.- Author:
- Martin Davis
-
Field Summary
Fields inherited from interface 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 ofShapes. -
Method Summary
Modifier and TypeMethodDescriptionintcurrentSegment(double[] coords) intcurrentSegment(float[] coords) intbooleanisDone()voidnext()
-
Constructor Details
-
ShapeCollectionPathIterator
Creates a new path iterator for a collection ofShapes.- 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:
getWindingRulein interfacePathIterator
-
isDone
public boolean isDone()- Specified by:
isDonein interfacePathIterator
-
next
public void next()- Specified by:
nextin interfacePathIterator
-
currentSegment
public int currentSegment(float[] coords) - Specified by:
currentSegmentin interfacePathIterator
-
currentSegment
public int currentSegment(double[] coords) - Specified by:
currentSegmentin interfacePathIterator
-