public class DrawGeneralPathXIterator extends Object implements PathIterator
PathIterator
to draw a GeneralPathX
object.
While iterating the {@link GeneralPathX) each point coordinates are
converted to int. If a segment is a PathIterator#SEG_LINETO and the
integer coordinates are the same as the previous point ones, the point
is ignored and the next one is looked for.Modifier and Type | Field and Description |
---|---|
protected AffineTransform |
affine |
protected GeneralPathX |
path |
protected int |
pointIdx |
protected int |
typeIdx |
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
Constructor and Description |
---|
DrawGeneralPathXIterator(GeneralPathX path)
Constructs an iterator given a GeneralPathX.
|
DrawGeneralPathXIterator(GeneralPathX path,
AffineTransform at)
Constructs an iterator given a GeneralPathX and an optional
AffineTransform.
|
Modifier and Type | Method and Description |
---|---|
int |
currentSegment(double[] coords) |
int |
currentSegment(float[] coords) |
int |
getWindingRule() |
boolean |
isDone() |
void |
next() |
protected int typeIdx
protected int pointIdx
protected GeneralPathX path
protected AffineTransform affine
public DrawGeneralPathXIterator(GeneralPathX path)
public DrawGeneralPathXIterator(GeneralPathX path, AffineTransform at)
public int getWindingRule()
getWindingRule
in interface PathIterator
public boolean isDone()
isDone
in interface PathIterator
public void next()
next
in interface PathIterator
public int currentSegment(float[] coords)
currentSegment
in interface PathIterator
public int currentSegment(double[] coords)
currentSegment
in interface PathIterator