net.refractions.udig.tools.edit.support
Class EditGeomPathIterator

java.lang.Object
  extended by net.refractions.udig.tools.edit.support.AbstractPathIterator
      extended by 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

Field Summary
protected  boolean isPolygon
           
 
Fields inherited from class net.refractions.udig.tools.edit.support.AbstractPathIterator
currentPoint, currentShape, geom, nextPoint, points
 
Fields inherited from interface java.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
 
Constructor Summary
protected EditGeomPathIterator(EditGeom shape)
           
 
Method Summary
 int currentSegment(float[] coords)
           
 void dispose()
           
static EditGeomPathIterator getPathIterator(EditGeom geom)
           
protected  boolean isClosed(PrimitiveShape shape)
           
 boolean isPolygon()
           
 void setPolygon(boolean isPolygon)
           
 
Methods inherited from class net.refractions.udig.tools.edit.support.AbstractPathIterator
createPoint, createPointPath, currentSegment, getWindingRule, isDone, next, toPath, toShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isPolygon

protected boolean isPolygon
Constructor Detail

EditGeomPathIterator

protected EditGeomPathIterator(EditGeom shape)
Method Detail

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.