net.refractions.udig.tools.edit.support
Class EditGeomPathIterator
java.lang.Object
net.refractions.udig.tools.edit.support.AbstractPathIterator
net.refractions.udig.tools.edit.support.EditGeomPathIterator
- All Implemented Interfaces:
- java.awt.geom.PathIterator
- Direct Known Subclasses:
- CurrentEditGeomPathIterator
public class EditGeomPathIterator
- extends AbstractPathIterator
Wraps a EditGeom
so that it can be drawn to a
Graphics2d object.
- 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 |
isPolygon
protected boolean isPolygon
EditGeomPathIterator
protected EditGeomPathIterator(EditGeom shape)
dispose
public void dispose()
getPathIterator
public static EditGeomPathIterator getPathIterator(EditGeom geom)
currentSegment
public int currentSegment(float[] coords)
- Specified by:
currentSegment
in interface java.awt.geom.PathIterator
- Overrides:
currentSegment
in class AbstractPathIterator
isClosed
protected boolean isClosed(PrimitiveShape shape)
setPolygon
public void setPolygon(boolean isPolygon)
isPolygon
public boolean isPolygon()
- Returns:
- Returns the isPolygon.