| java.lang.Object com.lowagie.text.pdf.PdfObject com.lowagie.text.pdf.PdfArray com.lowagie.text.pdf.PdfRectangle
PdfRectangle | public class PdfRectangle extends PdfArray (Code) | | PdfRectangle is the PDF Rectangle object.
Rectangles are used to describe locations on the page and bounding boxes for several
objects in PDF, such as fonts. A rectangle is represented as an array of
four numbers, specifying the lower lef x, lower left y, upper right x,
and upper right y coordinates of the rectangle, in that order.
This object is described in the 'Portable Document Format Reference Manual version 1.3'
section 7.1 (page 183).
See Also: com.lowagie.text.Rectangle See Also: PdfArray |
Constructor Summary | |
public | PdfRectangle(float llx, float lly, float urx, float ury, int rotation) Constructs a PdfRectangle -object. | public | PdfRectangle(float llx, float lly, float urx, float ury) | public | PdfRectangle(float urx, float ury, int rotation) Constructs a PdfRectangle -object starting from the origin (0, 0). | public | PdfRectangle(float urx, float ury) | public | PdfRectangle(Rectangle rectangle, int rotation) Constructs a PdfRectangle -object with a Rectangle -object. | public | PdfRectangle(Rectangle rectangle) |
Method Summary | |
public boolean | add(PdfObject object) Overrides the add -method in PdfArray in order to prevent the adding of extra object to the array. | public float | bottom() Returns the lower left y-coordinate. | public float | bottom(int margin) Returns the lower left y-coordinate, considering a given margin. | public Rectangle | getRectangle() | public float | height() Returns the height of the rectangle. | public float | left() Returns the lower left x-coordinate. | public float | left(int margin) Returns the lower left x-coordinate, considering a given margin. | public float | right() Returns the upper right x-coordinate. | public float | right(int margin) Returns the upper right x-coordinate, considering a given margin. | public PdfRectangle | rotate() Swaps the values of urx and ury and of lly and llx in order to rotate the rectangle. | public float | top() Returns the upper right y-coordinate. | public float | top(int margin) Returns the upper right y-coordinate, considering a given margin. | public float | width() Returns the width of the rectangle. |
PdfRectangle | public PdfRectangle(float llx, float lly, float urx, float ury, int rotation)(Code) | | Constructs a PdfRectangle -object.
Parameters: llx - lower left x Parameters: lly - lower left y Parameters: urx - upper right x Parameters: ury - upper right y since: rugPdf0.10 |
PdfRectangle | public PdfRectangle(float llx, float lly, float urx, float ury)(Code) | | |
PdfRectangle | public PdfRectangle(float urx, float ury, int rotation)(Code) | | Constructs a PdfRectangle -object starting from the origin (0, 0).
Parameters: urx - upper right x Parameters: ury - upper right y |
PdfRectangle | public PdfRectangle(float urx, float ury)(Code) | | |
PdfRectangle | public PdfRectangle(Rectangle rectangle, int rotation)(Code) | | Constructs a PdfRectangle -object with a Rectangle -object.
Parameters: rectangle - a Rectangle |
add | public boolean add(PdfObject object)(Code) | | Overrides the add -method in PdfArray in order to prevent the adding of extra object to the array.
Parameters: object - PdfObject to add (will not be added here) false |
bottom | public float bottom()(Code) | | Returns the lower left y-coordinate.
the lower left y-coordinate |
bottom | public float bottom(int margin)(Code) | | Returns the lower left y-coordinate, considering a given margin.
Parameters: margin - a margin the lower left y-coordinate |
getRectangle | public Rectangle getRectangle()(Code) | | Returns the high level version of this PdfRectangle
this PdfRectangle translated to class Rectangle |
height | public float height()(Code) | | Returns the height of the rectangle.
a height |
left | public float left()(Code) | | Returns the lower left x-coordinate.
the lower left x-coordinaat |
left | public float left(int margin)(Code) | | Returns the lower left x-coordinate, considering a given margin.
Parameters: margin - a margin the lower left x-coordinate |
right | public float right()(Code) | | Returns the upper right x-coordinate.
the upper right x-coordinate |
right | public float right(int margin)(Code) | | Returns the upper right x-coordinate, considering a given margin.
Parameters: margin - a margin the upper right x-coordinate |
rotate | public PdfRectangle rotate()(Code) | | Swaps the values of urx and ury and of lly and llx in order to rotate the rectangle.
a PdfRectangle |
top | public float top()(Code) | | Returns the upper right y-coordinate.
the upper right y-coordinate |
top | public float top(int margin)(Code) | | Returns the upper right y-coordinate, considering a given margin.
Parameters: margin - a margin the upper right y-coordinate |
width | public float width()(Code) | | Returns the width of the rectangle.
a width |
|
|