Package com.itextpdf.awt.geom
Class Rectangle2D.Iterator
- java.lang.Object
-
- com.itextpdf.awt.geom.Rectangle2D.Iterator
-
- All Implemented Interfaces:
PathIterator
- Enclosing class:
- Rectangle2D
class Rectangle2D.Iterator extends java.lang.Object implements PathIterator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) doubleheightThe height of rectangle(package private) intindexThe current segmenet index(package private) AffineTransformtThe path iterator transformation(package private) doublewidthThe width of rectangle(package private) doublexThe x coordinate of left-upper rectangle corner(package private) doubleyThe y coordinate of left-upper rectangle corner-
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(Rectangle2D r, AffineTransform at)Constructs a new Rectangle2D.Iterator for given rectangle 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
-
x
double x
The x coordinate of left-upper rectangle corner
-
y
double y
The y coordinate of left-upper rectangle corner
-
width
double width
The width of rectangle
-
height
double height
The height of rectangle
-
t
AffineTransform t
The path iterator transformation
-
index
int index
The current segmenet index
-
-
Constructor Detail
-
Iterator
Iterator(Rectangle2D r, AffineTransform at)
Constructs a new Rectangle2D.Iterator for given rectangle and transformation- Parameters:
r- - the source Rectangle2D 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
-
-