public final class LineIterator2 extends Object implements PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
Constructor and Description |
---|
LineIterator2() |
Modifier and Type | Method and Description |
---|---|
int |
currentSegment(double[] coords) |
int |
currentSegment(float[] coords) |
int |
getWindingRule()
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.
|
public int currentSegment(float[] coords)
currentSegment
in interface PathIterator
PathIterator.currentSegment(float[])
public void init(LineString ls, AffineTransform at)
ls
- at
- public int getWindingRule()
getWindingRule
in interface PathIterator
PathIterator.WIND_EVEN_ODD
,
PathIterator.WIND_NON_ZERO
public boolean isDone()
isDone
in interface PathIterator
true
if all the segments have been read; false
otherwise.public void next()
next
in interface PathIterator
public int currentSegment(double[] coords)
currentSegment
in interface PathIterator
PathIterator.currentSegment(double[])
Copyright © 1996–2019 Geotools. All rights reserved.