org.apache.batik.ext.awt.geom

Class PathLength.SingleSegmentPathIterator

protected static class PathLength.SingleSegmentPathIterator extends Object implements PathIterator

A PathIterator that returns only the next path segment from another PathIterator.
Field Summary
protected booleandone
Whether the single segment has been passed.
protected PathIteratorit
The path iterator being wrapped.
protected booleanmoveDone
Whether the generated move command has been returned.
protected doublex
The x coordinate of the next move command.
protected doubley
The y coordinate of the next move command.
Method Summary
intcurrentSegment(double[] coords)
intcurrentSegment(float[] coords)
intgetWindingRule()
booleanisDone()
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 Detail

done

protected boolean done
Whether the single segment has been passed.

it

protected PathIterator it
The path iterator being wrapped.

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

currentSegment

public int currentSegment(double[] coords)

currentSegment

public int currentSegment(float[] coords)

getWindingRule

public int getWindingRule()

isDone

public boolean isDone()

next

public void next()

setPathIterator

public void setPathIterator(PathIterator it, double x, double y)
Sets the path iterator to use and the initial SEG_MOVETO command to return before it.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.