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) GeneralPathThe source GeneralPath object(package private) intThe current cursor position in points buffer(package private) AffineTransformThe path iterator transformation(package private) intThe current cursor position in types bufferFields inherited from interface 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 TypeMethodDescriptionintcurrentSegment(double[] coords) intcurrentSegment(float[] coords) intbooleanisDone()voidnext()
-
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:
getWindingRulein interfacePathIterator
-
isDone
public boolean isDone()- Specified by:
isDonein interfacePathIterator
-
next
public void next()- Specified by:
nextin interfacePathIterator
-
currentSegment
public int currentSegment(double[] coords) - Specified by:
currentSegmentin interfacePathIterator
-
currentSegment
public int currentSegment(float[] coords) - Specified by:
currentSegmentin interfacePathIterator
-