Package diva.util.java2d
Class PolylineIterator
- java.lang.Object
-
- diva.util.java2d.PolylineIterator
-
- All Implemented Interfaces:
java.awt.geom.PathIterator
public class PolylineIterator extends java.lang.Object implements java.awt.geom.PathIteratorAn iterator over Polyline2D. This class is private to this package.- Version:
- $Id$
- Author:
- John Reekie
-
-
Constructor Summary
Constructors Constructor Description PolylineIterator(Polyline2D pl, java.awt.geom.AffineTransform at)Create a new iterator over the given polyline and with the given transform.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcurrentSegment(double[] coords)Get the current segmentintcurrentSegment(float[] coords)Get the current segmentintgetWindingRule()Return the winding rule.booleanisDone()Test if the iterator is done.voidnext()Move the iterator along by one point.
-
-
-
Constructor Detail
-
PolylineIterator
public PolylineIterator(Polyline2D pl, java.awt.geom.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:
currentSegmentin interfacejava.awt.geom.PathIterator
-
currentSegment
public int currentSegment(float[] coords)
Get the current segment- Specified by:
currentSegmentin interfacejava.awt.geom.PathIterator
-
getWindingRule
public int getWindingRule()
Return the winding rule. This is WIND_NON_ZERO.- Specified by:
getWindingRulein interfacejava.awt.geom.PathIterator
-
isDone
public boolean isDone()
Test if the iterator is done.- Specified by:
isDonein interfacejava.awt.geom.PathIterator
-
next
public void next()
Move the iterator along by one point.- Specified by:
nextin interfacejava.awt.geom.PathIterator
-
-