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 org.gvsig.fmap.geom.primitive.GeneralPathX |
path |
protected int |
pointIdx |
protected int |
typeIdx |
| Constructor and Description |
|---|
DrawGeneralPathXIterator(org.gvsig.fmap.geom.primitive.GeneralPathX path)
Constructs an iterator given a GeneralPathX.
|
DrawGeneralPathXIterator(org.gvsig.fmap.geom.primitive.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 java.awt.geom.AffineTransform affine
protected org.gvsig.fmap.geom.primitive.GeneralPathX path
protected int pointIdx
protected int typeIdx
public DrawGeneralPathXIterator(org.gvsig.fmap.geom.primitive.GeneralPathX path)
GeneralPathX.getPathIterator(java.awt.geom.AffineTransform)public DrawGeneralPathXIterator(org.gvsig.fmap.geom.primitive.GeneralPathX path,
java.awt.geom.AffineTransform at)
GeneralPathX.getPathIterator(java.awt.geom.AffineTransform)public int currentSegment(double[] coords)
currentSegment in interface java.awt.geom.PathIteratorpublic int currentSegment(float[] coords)
currentSegment in interface java.awt.geom.PathIteratorpublic 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.PathIteratorCopyright © 2015 gvSIG Association. All Rights Reserved.