Package org.apache.batik.ext.awt.geom
Class PathLength.SingleSegmentPathIterator
- java.lang.Object
-
- org.apache.batik.ext.awt.geom.PathLength.SingleSegmentPathIterator
-
- All Implemented Interfaces:
java.awt.geom.PathIterator
- Enclosing class:
- PathLength
protected static class PathLength.SingleSegmentPathIterator extends java.lang.Object implements java.awt.geom.PathIteratorAPathIteratorthat returns only the next path segment from anotherPathIterator.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandoneWhether the single segment has been passed.protected java.awt.geom.PathIteratoritThe path iterator being wrapped.protected booleanmoveDoneWhether the generated move command has been returned.protected doublexThe x coordinate of the next move command.protected doubleyThe y coordinate of the next move command.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSingleSegmentPathIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcurrentSegment(double[] coords)intcurrentSegment(float[] coords)intgetWindingRule()booleanisDone()voidnext()voidsetPathIterator(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.
-
-
-
Field Detail
-
it
protected java.awt.geom.PathIterator it
The path iterator being wrapped.
-
done
protected boolean done
Whether the single segment has been passed.
-
moveDone
protected boolean moveDone
Whether the generated move command has been returned.
-
x
protected double x
The x coordinate of the next move command.
-
y
protected double y
The y coordinate of the next move command.
-
-
Method Detail
-
setPathIterator
public 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.
-
currentSegment
public int currentSegment(double[] coords)
- Specified by:
currentSegmentin interfacejava.awt.geom.PathIterator
-
currentSegment
public int currentSegment(float[] coords)
- Specified by:
currentSegmentin interfacejava.awt.geom.PathIterator
-
getWindingRule
public int getWindingRule()
- Specified by:
getWindingRulein interfacejava.awt.geom.PathIterator
-
isDone
public boolean isDone()
- Specified by:
isDonein interfacejava.awt.geom.PathIterator
-
next
public void next()
- Specified by:
nextin interfacejava.awt.geom.PathIterator
-
-