Class PathLength.SingleSegmentPathIterator
java.lang.Object
org.apache.batik.ext.awt.geom.PathLength.SingleSegmentPathIterator
- All Implemented Interfaces:
PathIterator
- Enclosing class:
PathLength
A
PathIterator that returns only the next path segment from
another PathIterator.- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether the single segment has been passed.protected PathIteratorThe path iterator being wrapped.protected booleanWhether the generated move command has been returned.protected doubleThe x coordinate of the next move command.protected doubleThe y coordinate of the next move command.Fields inherited from interface PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcurrentSegment(double[] coords) intcurrentSegment(float[] coords) intbooleanisDone()voidnext()voidsetPathIterator(PathIterator it, double x, double y) Sets the path iterator to use and the initial SEG_MOVETO command to return before it.
-
Field Details
-
it
The path iterator being wrapped. -
done
protected boolean doneWhether the single segment has been passed. -
moveDone
protected boolean moveDoneWhether the generated move command has been returned. -
x
protected double xThe x coordinate of the next move command. -
y
protected double yThe y coordinate of the next move command.
-
-
Constructor Details
-
SingleSegmentPathIterator
protected SingleSegmentPathIterator()
-
-
Method Details
-
setPathIterator
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 interfacePathIterator
-
currentSegment
public int currentSegment(float[] coords) - Specified by:
currentSegmentin interfacePathIterator
-
getWindingRule
public int getWindingRule()- Specified by:
getWindingRulein interfacePathIterator
-
isDone
public boolean isDone()- Specified by:
isDonein interfacePathIterator
-
next
public void next()- Specified by:
nextin interfacePathIterator
-