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 TypeMethodDescriptionint
currentSegment
(double[] coords) int
currentSegment
(float[] coords) int
Returns the winding rule for determining the interior of the path.void
init
(LineString ls, AffineTransform at) boolean
isDone()
Tests if the iteration is complete.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.
-
Constructor Details
-
LineIterator2
public LineIterator2()
-
-
Method Details
-
currentSegment
public int currentSegment(float[] coords) - Specified by:
currentSegment
in interfacePathIterator
- See Also:
-
init
-
getWindingRule
public int getWindingRule()Returns the winding rule for determining the interior of the path.- Specified by:
getWindingRule
in interfacePathIterator
- Returns:
- the winding rule.
- See Also:
-
isDone
public boolean isDone()Tests if the iteration is complete.- Specified by:
isDone
in interfacePathIterator
- Returns:
true
if all the segments have been read;false
otherwise.
-
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:
next
in interfacePathIterator
-
currentSegment
public int currentSegment(double[] coords) - Specified by:
currentSegment
in interfacePathIterator
- See Also:
-