public class DrawGeneralPathXIterator
extends java.lang.Object
implements java.awt.geom.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 java.awt.geom.AffineTransform |
affine |
protected GeneralPathX |
path |
protected int |
pointIdx |
protected int |
typeIdx |
| Constructor and Description |
|---|
DrawGeneralPathXIterator(GeneralPathX path)
Constructs an iterator given a GeneralPathX.
|
DrawGeneralPathXIterator(GeneralPathX path,
java.awt.geom.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 java.awt.geom.AffineTransform affine
public DrawGeneralPathXIterator(GeneralPathX path)
public DrawGeneralPathXIterator(GeneralPathX path, java.awt.geom.AffineTransform at)
public int getWindingRule()
getWindingRule in interface java.awt.geom.PathIteratorpublic boolean isDone()
isDone in interface java.awt.geom.PathIteratorpublic void next()
next in interface java.awt.geom.PathIteratorpublic int currentSegment(float[] coords)
currentSegment in interface java.awt.geom.PathIteratorpublic int currentSegment(double[] coords)
currentSegment in interface java.awt.geom.PathIterator