| java.lang.Object com.lowagie.text.pdf.internal.PolylineShape
PolylineShape | public class PolylineShape implements Shape(Code) | | Class that defines a Polyline shape.
This class was originally written by wil - amristar.com.au
and integrated into iText by Bruno.
|
Field Summary | |
protected int | np The total number of points. | protected int[] | x All the X-values of the coordinates in the polyline. | protected int[] | y All the Y-values of the coordinates in the polyline. |
Constructor Summary | |
public | PolylineShape(int[] x, int[] y, int nPoints) Creates a PolylineShape. |
Method Summary | |
public boolean | contains(double x, double y) A polyline can't contain a point. | public boolean | contains(Point2D p) A polyline can't contain a point. | public boolean | contains(double x, double y, double w, double h) A polyline can't contain a point. | public boolean | contains(Rectangle2D r) A polyline can't contain a point. | public Rectangle | getBounds() Returns the bounding box of this polyline. | public Rectangle2D | getBounds2D() Returns the bounding box of this polyline. | public PathIterator | getPathIterator(AffineTransform at) Returns an iteration object that defines the boundary of the polyline. | public PathIterator | getPathIterator(AffineTransform at, double flatness) There's no difference with getPathIterator(AffineTransform at);
we just need this method to implement the Shape interface. | public boolean | intersects(double x, double y, double w, double h) Checks if one of the lines in the polyline intersects
with a given rectangle. | public boolean | intersects(Rectangle2D r) Checks if one of the lines in the polyline intersects
with a given rectangle. |
np | protected int np(Code) | | The total number of points.
|
x | protected int[] x(Code) | | All the X-values of the coordinates in the polyline.
|
y | protected int[] y(Code) | | All the Y-values of the coordinates in the polyline.
|
PolylineShape | public PolylineShape(int[] x, int[] y, int nPoints)(Code) | | Creates a PolylineShape.
|
getPathIterator | public PathIterator getPathIterator(AffineTransform at, double flatness)(Code) | | There's no difference with getPathIterator(AffineTransform at);
we just need this method to implement the Shape interface.
|
|
|