Package com.itextpdf.awt.geom
Class Rectangle2D.Iterator
java.lang.Object
com.itextpdf.awt.geom.Rectangle2D.Iterator
- All Implemented Interfaces:
PathIterator
- Enclosing class:
- Rectangle2D
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) double
The height of rectangle(package private) int
The current segmenet index(package private) AffineTransform
The path iterator transformation(package private) double
The width of rectangle(package private) double
The x coordinate of left-upper rectangle corner(package private) double
The y coordinate of left-upper rectangle cornerFields 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
(Rectangle2D r, AffineTransform at) Constructs a new Rectangle2D.Iterator for given rectangle and transformation -
Method Summary
Modifier and TypeMethodDescriptionint
currentSegment
(double[] coords) int
currentSegment
(float[] coords) int
boolean
isDone()
void
next()
-
Field Details
-
x
double xThe x coordinate of left-upper rectangle corner -
y
double yThe y coordinate of left-upper rectangle corner -
width
double widthThe width of rectangle -
height
double heightThe height of rectangle -
t
The path iterator transformation -
index
int indexThe current segmenet index
-
-
Constructor Details
-
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 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
-