Package com.itextpdf.awt.geom
Class Line2D.Iterator
java.lang.Object
com.itextpdf.awt.geom.Line2D.Iterator
- All Implemented Interfaces:
PathIterator
- Enclosing class:
Line2D
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intThe current segmenet index(package private) AffineTransformThe path iterator transformation(package private) doubleThe x coordinate of the start line point(package private) doubleThe x coordinate of the end line point(package private) doubleThe y coordinate of the start line point(package private) doubleThe y coordinate of the end line pointFields 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(Line2D l, AffineTransform at) Constructs a new Line2D.Iterator for given line and transformation -
Method Summary
Modifier and TypeMethodDescriptionintcurrentSegment(double[] coords) intcurrentSegment(float[] coords) intbooleanisDone()voidnext()
-
Field Details
-
x1
double x1The x coordinate of the start line point -
y1
double y1The y coordinate of the start line point -
x2
double x2The x coordinate of the end line point -
y2
double y2The y coordinate of the end line point -
t
The path iterator transformation -
index
int indexThe current segmenet index
-
-
Constructor Details
-
Iterator
Iterator(Line2D l, AffineTransform at) Constructs a new Line2D.Iterator for given line and transformation- Parameters:
l- - the source Line2D 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
-