|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.geom.primitive.GeneralPathXIterator
org.gvsig.fmap.geom.primitive.PointIterator
public class PointIterator
A iterator to retrieve all the points of a
Geometry
| Field Summary |
|---|
| Fields inherited from class org.gvsig.fmap.geom.primitive.GeneralPathXIterator |
|---|
affine, path, pointIdx, typeIdx |
| 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 | |
|---|---|
PointIterator(Point2D p,
AffineTransform at)
Creates a new PointIterator object. |
|
| 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()
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PointIterator(Point2D p,
AffineTransform at)
p - The polygonat - The affine transform applied to coordinates during iteration| Method Detail |
|---|
public int getWindingRule()
getWindingRule in interface PathIteratorgetWindingRule in class GeneralPathXIteratorWIND_EVEN_ODD by default.PathIterator.WIND_EVEN_ODD,
PathIterator.WIND_NON_ZEROpublic void next()
GeneralPathXIterator
next in interface PathIteratornext in class GeneralPathXIteratorPathIterator.next()public boolean isDone()
GeneralPathXIterator
isDone in interface PathIteratorisDone in class GeneralPathXIteratorPathIterator.isDone()public int currentSegment(double[] coords)
GeneralPathXIterator
currentSegment in interface PathIteratorcurrentSegment in class GeneralPathXIteratorPathIterator.currentSegment(double[])public int currentSegment(float[] coords)
GeneralPathXIterator
currentSegment in interface PathIteratorcurrentSegment in class GeneralPathXIteratorPathIterator.SEG_MOVETO,
PathIterator.SEG_LINETO,
PathIterator.SEG_QUADTO,
PathIterator.SEG_CUBICTO,
PathIterator.SEG_CLOSE
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||