|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfArray
com.lowagie.text.pdf.PdfRectangle
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).
Rectangle,
PdfArray| Field Summary | |
private float |
llx
lower left x |
private float |
lly
lower left y |
private float |
urx
upper right x |
private float |
ury
upper right y |
| Fields inherited from class com.lowagie.text.pdf.PdfArray |
arrayList |
| Fields inherited from class com.lowagie.text.pdf.PdfObject |
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
| Constructor Summary | |
PdfRectangle(float urx,
float ury)
|
|
PdfRectangle(float llx,
float lly,
float urx,
float ury)
|
|
PdfRectangle(float llx,
float lly,
float urx,
float ury,
int rotation)
Constructs a PdfRectangle-object. |
|
PdfRectangle(float urx,
float ury,
int rotation)
Constructs a PdfRectangle-object starting from the origin (0, 0). |
|
PdfRectangle(Rectangle rectangle)
|
|
PdfRectangle(Rectangle rectangle,
int rotation)
Constructs a PdfRectangle-object with a Rectangle-object. |
|
| Method Summary | |
boolean |
add(PdfObject object)
Overrides the add-method in PdfArray in order to prevent the adding of extra object to the array. |
float |
bottom()
Returns the lower left y-coordinate. |
float |
bottom(int margin)
Returns the lower left y-coordinate, considering a given margin. |
float |
height()
Returns the height of the rectangle. |
float |
left()
Returns the lower left x-coordinate. |
float |
left(int margin)
Returns the lower left x-coordinate, considering a given margin. |
float |
right()
Returns the upper right x-coordinate. |
float |
right(int margin)
Returns the upper right x-coordinate, considering a given margin. |
PdfRectangle |
rotate()
Swaps the values of urx and ury and of lly and llx in order to rotate the rectangle. |
float |
top()
Returns the upper right y-coordinate. |
float |
top(int margin)
Returns the upper right y-coordinate, considering a given margin. |
float |
width()
Returns the width of the rectangle. |
| Methods inherited from class com.lowagie.text.pdf.PdfArray |
add, add, addFirst, contains, getArrayList, size, toPdf |
| Methods inherited from class com.lowagie.text.pdf.PdfObject |
getBytes, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, toString, type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private float llx
private float lly
private float urx
private float ury
| Constructor Detail |
public PdfRectangle(float llx,
float lly,
float urx,
float ury,
int rotation)
PdfRectangle-object.
llx - lower left xlly - lower left yurx - upper right xury - upper right y
public PdfRectangle(float llx,
float lly,
float urx,
float ury)
public PdfRectangle(float urx,
float ury,
int rotation)
PdfRectangle-object starting from the origin (0, 0).
urx - upper right xury - upper right y
public PdfRectangle(float urx,
float ury)
public PdfRectangle(Rectangle rectangle,
int rotation)
PdfRectangle-object with a Rectangle-object.
rectangle - a Rectanglepublic PdfRectangle(Rectangle rectangle)
| Method Detail |
public boolean add(PdfObject object)
add-method in PdfArray in order to prevent the adding of extra object to the array.
add in class PdfArrayobject - PdfObject to add (will not be added here)
falsepublic float left()
public float right()
public float top()
public float bottom()
public float left(int margin)
margin - a margin
public float right(int margin)
margin - a margin
public float top(int margin)
margin - a margin
public float bottom(int margin)
margin - a margin
public float width()
public float height()
public PdfRectangle rotate()
PdfRectangle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||