diva.util.java2d
Class PolylineIterator

java.lang.Object
  extended by diva.util.java2d.PolylineIterator
All Implemented Interfaces:
PathIterator

public class PolylineIterator
extends Object
implements PathIterator

An iterator over Polyline2D. This class is private to this package.

Version:
$Revision: 1.3 $
Author:
John Reekie

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
PolylineIterator(Polyline2D pl, AffineTransform at)
          Create a new iterator over the given polyline and with the given transform.
 
Method Summary
 int currentSegment(double[] coords)
          Get the current segment
 int currentSegment(float[] coords)
          Get the current segment
 int getWindingRule()
          Return the winding rule.
 boolean isDone()
          Test if the iterator is done.
 void next()
          Move the iterator along by one point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolylineIterator

public PolylineIterator(Polyline2D pl,
                        AffineTransform at)
Create a new iterator over the given polyline and with the given transform. If the transform is null, that is taken to be the same as a unit Transform.

Method Detail

currentSegment

public int currentSegment(double[] coords)
Get the current segment

Specified by:
currentSegment in interface PathIterator

currentSegment

public int currentSegment(float[] coords)
Get the current segment

Specified by:
currentSegment in interface PathIterator

getWindingRule

public int getWindingRule()
Return the winding rule. This is WIND_NON_ZERO.

Specified by:
getWindingRule in interface PathIterator

isDone

public boolean isDone()
Test if the iterator is done.

Specified by:
isDone in interface PathIterator

next

public void next()
Move the iterator along by one point.

Specified by:
next in interface PathIterator


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.