public class PointIterator
extends org.gvsig.fmap.geom.generalpath.gputils.GeneralPathXIterator
Geometry| Constructor and Description |
|---|
PointIterator(java.awt.geom.Point2D p,
java.awt.geom.AffineTransform at)
Creates a new PointIterator object.
|
| Modifier and Type | Method and Description |
|---|---|
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()
Return the winding rule for determining the interior of the path.
|
boolean |
isDone()
Tests if there are more points to read.
|
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.
|
public PointIterator(java.awt.geom.Point2D p,
java.awt.geom.AffineTransform at)
p - The polygonat - The affine transform applied to coordinates during iterationpublic int currentSegment(double[] coords)
GeneralPathXIteratorcurrentSegment in interface java.awt.geom.PathIteratorcurrentSegment in class org.gvsig.fmap.geom.generalpath.gputils.GeneralPathXIteratorPathIterator.currentSegment(double[])public int currentSegment(float[] coords)
GeneralPathXIteratorcurrentSegment in interface java.awt.geom.PathIteratorcurrentSegment in class org.gvsig.fmap.geom.generalpath.gputils.GeneralPathXIteratorPathIterator.SEG_MOVETO,
PathIterator.SEG_LINETO,
PathIterator.SEG_QUADTO,
PathIterator.SEG_CUBICTO,
PathIterator.SEG_CLOSEpublic int getWindingRule()
getWindingRule in interface java.awt.geom.PathIteratorgetWindingRule in class org.gvsig.fmap.geom.generalpath.gputils.GeneralPathXIteratorWIND_EVEN_ODD by default.PathIterator.WIND_EVEN_ODD,
PathIterator.WIND_NON_ZEROpublic boolean isDone()
GeneralPathXIteratorisDone in interface java.awt.geom.PathIteratorisDone in class org.gvsig.fmap.geom.generalpath.gputils.GeneralPathXIteratorPathIterator.isDone()public void next()
GeneralPathXIteratornext in interface java.awt.geom.PathIteratornext in class org.gvsig.fmap.geom.generalpath.gputils.GeneralPathXIteratorPathIterator.next()Copyright © 2015 gvSIG Association. All Rights Reserved.