net.refractions.udig.tools.edit.support
Class PrimitiveShapeIterator
java.lang.Object
net.refractions.udig.tools.edit.support.AbstractShapeIterator
net.refractions.udig.tools.edit.support.PrimitiveShapeIterator
- All Implemented Interfaces:
- java.awt.geom.PathIterator
public class PrimitiveShapeIterator
- extends AbstractShapeIterator
PathIterator that wraps a 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 |
PrimitiveShapeIterator
protected PrimitiveShapeIterator(PrimitiveShape shape)
getPathIterator
public static PrimitiveShapeIterator getPathIterator(PrimitiveShape shape)
currentSegment
public int currentSegment(float[] coords)
- Specified by:
currentSegment
in interface java.awt.geom.PathIterator
- Overrides:
currentSegment
in class AbstractShapeIterator
isClosed
protected boolean isClosed(PrimitiveShape shape)
setPolygon
public void setPolygon(boolean isPolygon)
isPolygon
public boolean isPolygon()
- Returns:
- Returns the isPolygon.