com.davisor.graphics
Class BetterPath.Iterator

java.lang.Object
  extended bycom.davisor.graphics.BetterPath.Iterator
All Implemented Interfaces:
java.awt.geom.PathIterator
Enclosing class:
BetterPath

protected class BetterPath.Iterator
extends java.lang.Object
implements java.awt.geom.PathIterator

BetterPath.Iterator implements a path iterator for the principal shape path storage mechanism.

See Also:
BetterPath.Segment

Field Summary
 
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 BetterPath.Iterator(boolean reverse)
          Creates a new path iterator.
 
Method Summary
 int currentSegment(double[] coords)
          Returns the coordinates and type of the current path segment in the iteration.
 int currentSegment(float[] coords)
          Returns the coordinates and type of the current path segment in the iteration.
 int getWindingRule()
          Returns the winding rule for determining the interior of the path.
 boolean isDone()
          Tests if the iteration is complete.
 void next()
          Moves the iterator to the next segment of the path forwards along the primary direction of traversal as long as there are more points in that direction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BetterPath.Iterator

protected BetterPath.Iterator(boolean reverse)
Creates a new path iterator.

Method Detail

currentSegment

public int currentSegment(double[] coords)
Returns the coordinates and type of the current path segment in the iteration.

Specified by:
currentSegment in interface java.awt.geom.PathIterator

currentSegment

public int currentSegment(float[] coords)
Returns the coordinates and type of the current path segment in the iteration.

Specified by:
currentSegment in interface java.awt.geom.PathIterator

getWindingRule

public int getWindingRule()
Returns the winding rule for determining the interior of the path.

Specified by:
getWindingRule in interface java.awt.geom.PathIterator

isDone

public boolean isDone()
Tests if the iteration is complete.

Specified by:
isDone in interface java.awt.geom.PathIterator

next

public void next()
Moves the iterator to the next segment of the path forwards along the primary direction of traversal as long as there are more points in that direction.

Specified by:
next in interface java.awt.geom.PathIterator


Copyright © 2001-2004 Davisor Oy. All Rights Reserved.