Package com.itextpdf.awt.geom
Class GeneralPath.Iterator
java.lang.Object
com.itextpdf.awt.geom.GeneralPath.Iterator
- All Implemented Interfaces:
PathIterator
- Enclosing class:
GeneralPath
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) GeneralPath
The source GeneralPath object(package private) int
The current cursor position in points buffer(package private) AffineTransform
The path iterator transformation(package private) int
The current cursor position in types bufferFields 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
ConstructorsConstructorDescriptionIterator
(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
Modifier and TypeMethodDescriptionint
currentSegment
(double[] coords) int
currentSegment
(float[] coords) int
boolean
isDone()
void
next()
-
Field Details
-
typeIndex
int typeIndexThe current cursor position in types buffer -
pointIndex
int pointIndexThe current cursor position in points buffer -
p
The source GeneralPath object -
t
The path iterator transformation
-
-
Constructor Details
-
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 Details
-
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
-