Package org.geotools.geometry.jts
Class LineIterator2
Object
LineIterator2
- All Implemented Interfaces:
PathIterator
A path iterator for the LiteShape class, specialized to iterate over LineString object.
- Author:
- Andrea Aime, simone giannecchini
-
Field Summary
Fields inherited from interface PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcurrentSegment(double[] coords) intcurrentSegment(float[] coords) intReturns the winding rule for determining the interior of the path.voidinit(LineString ls, AffineTransform at) booleanisDone()Tests if the iteration is complete.voidnext()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.
-
Constructor Details
-
LineIterator2
public LineIterator2()
-
-
Method Details
-
currentSegment
public int currentSegment(float[] coords) - Specified by:
currentSegmentin interfacePathIterator- See Also:
-
init
-
getWindingRule
public int getWindingRule()Returns the winding rule for determining the interior of the path.- Specified by:
getWindingRulein interfacePathIterator- Returns:
- the winding rule.
- See Also:
-
isDone
public boolean isDone()Tests if the iteration is complete.- Specified by:
isDonein interfacePathIterator- Returns:
trueif all the segments have been read;falseotherwise.
-
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:
nextin interfacePathIterator
-
currentSegment
public int currentSegment(double[] coords) - Specified by:
currentSegmentin interfacePathIterator- See Also:
-