Package org.locationtech.jts.awt
Class ShapeCollectionPathIterator
- java.lang.Object
-
- org.locationtech.jts.awt.ShapeCollectionPathIterator
-
- All Implemented Interfaces:
java.awt.geom.PathIterator
public class ShapeCollectionPathIterator extends java.lang.Object implements java.awt.geom.PathIterator
APathIterator
which provides paths for a collection ofShape
s.- Author:
- Martin Davis
-
-
Constructor Summary
Constructors Constructor Description ShapeCollectionPathIterator(java.util.Collection shapes, java.awt.geom.AffineTransform affineTransform)
Creates a new path iterator for a collection ofShape
s.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
currentSegment(double[] coords)
int
currentSegment(float[] coords)
int
getWindingRule()
boolean
isDone()
void
next()
-
-
-
Constructor Detail
-
ShapeCollectionPathIterator
public ShapeCollectionPathIterator(java.util.Collection shapes, java.awt.geom.AffineTransform affineTransform)
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 Detail
-
getWindingRule
public int getWindingRule()
- Specified by:
getWindingRule
in interfacejava.awt.geom.PathIterator
-
isDone
public boolean isDone()
- Specified by:
isDone
in interfacejava.awt.geom.PathIterator
-
next
public void next()
- Specified by:
next
in interfacejava.awt.geom.PathIterator
-
currentSegment
public int currentSegment(float[] coords)
- Specified by:
currentSegment
in interfacejava.awt.geom.PathIterator
-
currentSegment
public int currentSegment(double[] coords)
- Specified by:
currentSegment
in interfacejava.awt.geom.PathIterator
-
-