com.lowagie.text.pdf.internal
public class PolylineShape extends Object implements Shape
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 | |
---|---|
PolylineShape(int[] x, int[] y, int nPoints) Creates a PolylineShape. |
Method Summary | |
---|---|
boolean | contains(double x, double y)
A polyline can't contain a point. |
boolean | contains(Point2D p)
A polyline can't contain a point. |
boolean | contains(double x, double y, double w, double h)
A polyline can't contain a point. |
boolean | contains(Rectangle2D r)
A polyline can't contain a point. |
Rectangle | getBounds()
Returns the bounding box of this polyline. |
Rectangle2D | getBounds2D()
Returns the bounding box of this polyline.
|
PathIterator | getPathIterator(AffineTransform at)
Returns an iteration object that defines the boundary of the polyline. |
PathIterator | getPathIterator(AffineTransform at, double flatness)
There's no difference with getPathIterator(AffineTransform at);
we just need this method to implement the Shape interface. |
boolean | intersects(double x, double y, double w, double h)
Checks if one of the lines in the polyline intersects
with a given rectangle. |
boolean | intersects(Rectangle2D r)
Checks if one of the lines in the polyline intersects
with a given rectangle. |
int[] | rect()
Calculates the origin (X, Y) and the width and height
of a rectangle that contains all the segments of the
polyline. |
See Also: java.awt.Shape#contains(double, double)
See Also: java.awt.Shape#contains(java.awt.geom.Point2D)
See Also: java.awt.Shape#contains(double, double, double, double)
See Also: java.awt.Shape#contains(java.awt.geom.Rectangle2D)
See Also: java.awt.Shape#getBounds()
Returns: a Rectangle2D that is the high-precision bounding box of this line.
See Also: java.awt.Shape#getBounds2D()
Parameters: at the specified AffineTransform
Returns: a PathIterator that defines the boundary of this polyline.
See Also: java.awt.Shape#intersects(java.awt.geom.Rectangle2D)
See Also: java.awt.Shape#intersects(double, double, double, double)
See Also: java.awt.Shape#intersects(java.awt.geom.Rectangle2D)