Package com.itextpdf.awt.geom
Class GeneralPath.Iterator
- java.lang.Object
-
- com.itextpdf.awt.geom.GeneralPath.Iterator
-
- All Implemented Interfaces:
PathIterator
- Enclosing class:
- GeneralPath
class GeneralPath.Iterator extends java.lang.Object implements PathIterator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) GeneralPath
p
The source GeneralPath object(package private) int
pointIndex
The current cursor position in points buffer(package private) AffineTransform
t
The path iterator transformation(package private) int
typeIndex
The current cursor position in types buffer-
Fields inherited from interface com.itextpdf.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
-
-
Constructor Summary
Constructors Constructor Description Iterator(GeneralPath path)
Constructs a new GeneralPath.Iterator for given general pathIterator(GeneralPath path, AffineTransform at)
Constructs a new GeneralPath.Iterator for given general path and transformation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
currentSegment(double[] coords)
int
currentSegment(float[] coords)
int
getWindingRule()
boolean
isDone()
void
next()
-
-
-
Field Detail
-
typeIndex
int typeIndex
The current cursor position in types buffer
-
pointIndex
int pointIndex
The current cursor position in points buffer
-
p
GeneralPath p
The source GeneralPath object
-
t
AffineTransform t
The path iterator transformation
-
-
Constructor Detail
-
Iterator
Iterator(GeneralPath path)
Constructs a new GeneralPath.Iterator for given general path- Parameters:
path
- - the source GeneralPath object
-
Iterator
Iterator(GeneralPath path, AffineTransform at)
Constructs a new GeneralPath.Iterator for given general path and transformation- Parameters:
path
- - the source GeneralPath objectat
- - the AffineTransform object to apply rectangle path
-
-
Method Detail
-
getWindingRule
public int getWindingRule()
- Specified by:
getWindingRule
in interfacePathIterator
-
isDone
public boolean isDone()
- Specified by:
isDone
in interfacePathIterator
-
next
public void next()
- Specified by:
next
in interfacePathIterator
-
currentSegment
public int currentSegment(double[] coords)
- Specified by:
currentSegment
in interfacePathIterator
-
currentSegment
public int currentSegment(float[] coords)
- Specified by:
currentSegment
in interfacePathIterator
-
-