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

java.lang.Object
  extended by 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

Field Summary
protected  Point currentPoint
           
protected  Point nextPoint
           
protected  java.util.Iterator<Point> points
           
protected  PrimitiveShape 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 AbstractShapeIterator(PrimitiveShape shape)
           
 
Method Summary
 int currentSegment(double[] coords)
           
 int currentSegment(float[] coords)
           
 int getWindingRule()
           
 boolean isDone()
           
 void next()
           
 void reset()
           
 java.awt.Shape toShape()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shape

protected PrimitiveShape shape

points

protected java.util.Iterator<Point> points

currentPoint

protected Point currentPoint

nextPoint

protected Point nextPoint
Constructor Detail

AbstractShapeIterator

protected AbstractShapeIterator(PrimitiveShape shape)
Method Detail

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