protected static class DefaultPathLength.SingleSegmentPathIterator extends Object implements PathIterator
PathIterator
that returns only the next path segment from
another PathIterator
.Modifier and Type | Field and Description |
---|---|
protected boolean |
done
Whether the single segment has been passed.
|
protected PathIterator |
it
The path iterator being wrapped.
|
protected boolean |
moveDone
Whether the generated move command has been returned.
|
protected double |
x
The x coordinate of the next move command.
|
protected double |
y
The y coordinate of the next move command.
|
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
Modifier | Constructor and Description |
---|---|
protected |
SingleSegmentPathIterator() |
Modifier and Type | Method and Description |
---|---|
int |
currentSegment(double[] coords) |
int |
currentSegment(float[] coords) |
int |
getWindingRule() |
boolean |
isDone() |
void |
next() |
void |
setPathIterator(PathIterator it,
double x,
double y)
Sets the path iterator to use and the initial SEG_MOVETO command
to return before it.
|
protected PathIterator it
protected boolean done
protected boolean moveDone
protected double x
protected double y
public void setPathIterator(PathIterator it, double x, double y)
public int currentSegment(double[] coords)
currentSegment
in interface PathIterator
public int currentSegment(float[] coords)
currentSegment
in interface PathIterator
public int getWindingRule()
getWindingRule
in interface PathIterator
public boolean isDone()
isDone
in interface PathIterator
public void next()
next
in interface PathIterator