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 SummaryFields inherited from interface PathIteratorSEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
LineIterator2public LineIterator2()
 
- 
- 
Method Details- 
currentSegmentpublic int currentSegment(float[] coords) - Specified by:
- currentSegmentin interface- PathIterator
- See Also:
 
- 
init
- 
getWindingRulepublic int getWindingRule()Returns the winding rule for determining the interior of the path.- Specified by:
- getWindingRulein interface- PathIterator
- Returns:
- the winding rule.
- See Also:
 
- 
isDonepublic boolean isDone()Tests if the iteration is complete.- Specified by:
- isDonein interface- PathIterator
- Returns:
- trueif all the segments have been read;- falseotherwise.
 
- 
nextpublic 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 interface- PathIterator
 
- 
currentSegmentpublic int currentSegment(double[] coords) - Specified by:
- currentSegmentin interface- PathIterator
- See Also:
 
 
-