|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.ext.awt.geom.PathLength.SingleSegmentPathIterator
protected static class PathLength.SingleSegmentPathIterator
A PathIterator
that returns only the next path segment from
another PathIterator
.
Field Summary | |
---|---|
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. |
Fields inherited from interface java.awt.geom.PathIterator |
---|
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO |
Constructor Summary | |
---|---|
protected |
PathLength.SingleSegmentPathIterator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.geom.PathIterator it
protected boolean done
protected boolean moveDone
protected double x
protected double y
Constructor Detail |
---|
protected PathLength.SingleSegmentPathIterator()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |