java.lang.Object
com.lowagie.text.pdf.internal.PolylineShape
- All Implemented Interfaces:
Shape
Deprecated.
Class that defines a Polyline shape. This class was originally written by wil - amristar.com.au and integrated into
iText by Bruno.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPolylineShape(int[] x, int[] y, int nPoints) Deprecated.Creates a PolylineShape. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(double x, double y) Deprecated.A polyline can't contain a point.booleancontains(double x, double y, double w, double h) Deprecated.A polyline can't contain a point.booleanDeprecated.A polyline can't contain a point.booleanDeprecated.A polyline can't contain a point.Deprecated.Returns the bounding box of this polyline.Deprecated.Returns the bounding box of this polyline.Deprecated.Returns an iteration object that defines the boundary of the polyline.getPathIterator(AffineTransform at, double flatness) Deprecated.There's no difference with getPathIterator(AffineTransform at); we just need this method to implement the Shape interface.booleanintersects(double x, double y, double w, double h) Deprecated.Checks if one of the lines in the polyline intersects with a given rectangle.booleanDeprecated.Checks if one of the lines in the polyline intersects with a given rectangle.
-
Field Details
-
x
protected int[] xDeprecated.All the X-values of the coordinates in the polyline. -
y
protected int[] yDeprecated.All the Y-values of the coordinates in the polyline. -
np
protected int npDeprecated.The total number of points.
-
-
Constructor Details
-
PolylineShape
public PolylineShape(int[] x, int[] y, int nPoints) Deprecated.Creates a PolylineShape.- Parameters:
x- An int array containing all the X-values of the coordinates in the polyliney- An int array containing all the Y-values of the coordinates in the polylinenPoints- The total number of points
-
-
Method Details
-
getBounds2D
Deprecated.Returns the bounding box of this polyline.- Specified by:
getBounds2Din interfaceShape- Returns:
- a
Rectangle2Dthat is the high-precision bounding box of this line. - See Also:
-
getBounds
Deprecated.Returns the bounding box of this polyline. -
contains
public boolean contains(double x, double y) Deprecated.A polyline can't contain a point. -
contains
Deprecated.A polyline can't contain a point. -
contains
public boolean contains(double x, double y, double w, double h) Deprecated.A polyline can't contain a point. -
contains
Deprecated.A polyline can't contain a point. -
intersects
public boolean intersects(double x, double y, double w, double h) Deprecated.Checks if one of the lines in the polyline intersects with a given rectangle.- Specified by:
intersectsin interfaceShape- See Also:
-
intersects
Deprecated.Checks if one of the lines in the polyline intersects with a given rectangle.- Specified by:
intersectsin interfaceShape- See Also:
-
getPathIterator
Deprecated.Returns an iteration object that defines the boundary of the polyline.- Specified by:
getPathIteratorin interfaceShape- Parameters:
at- the specifiedAffineTransform- Returns:
- a
PathIteratorthat defines the boundary of this polyline. - See Also:
-
getPathIterator
Deprecated.There's no difference with getPathIterator(AffineTransform at); we just need this method to implement the Shape interface.- Specified by:
getPathIteratorin interfaceShape
-