protected static class DefaultPathLength.SingleSegmentPathIterator
extends java.lang.Object
implements java.awt.geom.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 java.awt.geom.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.
|
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(java.awt.geom.PathIterator it,
double x,
double y)
Sets the path iterator to use and the initial SEG_MOVETO command
to return before it.
|
protected java.awt.geom.PathIterator it
protected boolean done
protected boolean moveDone
protected double x
protected double y
public void setPathIterator(java.awt.geom.PathIterator it, double x, double y)
public int currentSegment(double[] coords)
currentSegment
in interface java.awt.geom.PathIterator
public int currentSegment(float[] coords)
currentSegment
in interface java.awt.geom.PathIterator
public int getWindingRule()
getWindingRule
in interface java.awt.geom.PathIterator
public boolean isDone()
isDone
in interface java.awt.geom.PathIterator
public void next()
next
in interface java.awt.geom.PathIterator