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

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

Field Summary
 
Fields inherited from class net.refractions.udig.tools.edit.support.AbstractShapeIterator
currentPoint, nextPoint, points, shape
 
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 PrimitiveShapeIterator(PrimitiveShape shape)
           
 
Method Summary
 int currentSegment(float[] coords)
           
static PrimitiveShapeIterator getPathIterator(PrimitiveShape shape)
           
protected  boolean isClosed(PrimitiveShape shape)
           
 boolean isPolygon()
           
 void setPolygon(boolean isPolygon)
           
 
Methods inherited from class net.refractions.udig.tools.edit.support.AbstractShapeIterator
currentSegment, getWindingRule, isDone, next, reset, toShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveShapeIterator

protected PrimitiveShapeIterator(PrimitiveShape shape)
Method Detail

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.