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) GeneralPathpThe source GeneralPath object(package private) intpointIndexThe current cursor position in points buffer(package private) AffineTransformtThe path iterator transformation(package private) inttypeIndexThe 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 intcurrentSegment(double[] coords)intcurrentSegment(float[] coords)intgetWindingRule()booleanisDone()voidnext()
-
-
-
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:
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
-
-