net.refractions.udig.tools.edit.support
Class AbstractShapeIterator
java.lang.Object
net.refractions.udig.tools.edit.support.AbstractShapeIterator
- All Implemented Interfaces:
- java.awt.geom.PathIterator
- Direct Known Subclasses:
- PrimitiveShapeIterator
public abstract class AbstractShapeIterator
- extends java.lang.Object
- implements java.awt.geom.PathIterator
PathIterator for a simple primitive shape.
- Since:
- 1.1.0
- Author:
- jones
Fields inherited from interface java.awt.geom.PathIterator |
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shape
protected PrimitiveShape shape
points
protected java.util.Iterator<Point> points
currentPoint
protected Point currentPoint
nextPoint
protected Point nextPoint
AbstractShapeIterator
protected AbstractShapeIterator(PrimitiveShape shape)
toShape
public java.awt.Shape toShape()
reset
public void reset()
getWindingRule
public int getWindingRule()
- Specified by:
getWindingRule
in interface java.awt.geom.PathIterator
isDone
public boolean isDone()
- Specified by:
isDone
in interface java.awt.geom.PathIterator
next
public void next()
- Specified by:
next
in interface java.awt.geom.PathIterator
currentSegment
public int currentSegment(float[] coords)
- Specified by:
currentSegment
in interface java.awt.geom.PathIterator
currentSegment
public int currentSegment(double[] coords)
- Specified by:
currentSegment
in interface java.awt.geom.PathIterator