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.PathIteratorAPathIteratorwhich provides paths for a collection ofShapes.- 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 ofShapes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcurrentSegment(double[] coords)intcurrentSegment(float[] coords)intgetWindingRule()booleanisDone()voidnext()
-
-
-
Constructor Detail
-
ShapeCollectionPathIterator
public ShapeCollectionPathIterator(java.util.Collection shapes, java.awt.geom.AffineTransform affineTransform)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 Detail
-
getWindingRule
public int getWindingRule()
- Specified by:
getWindingRulein interfacejava.awt.geom.PathIterator
-
isDone
public boolean isDone()
- Specified by:
isDonein interfacejava.awt.geom.PathIterator
-
next
public void next()
- Specified by:
nextin interfacejava.awt.geom.PathIterator
-
currentSegment
public int currentSegment(float[] coords)
- Specified by:
currentSegmentin interfacejava.awt.geom.PathIterator
-
currentSegment
public int currentSegment(double[] coords)
- Specified by:
currentSegmentin interfacejava.awt.geom.PathIterator
-
-