-object contains a number of rectangles representing the most common paper sizes.
Field Summary |
---|
public static final Rectangle | LETTER | This is the letter format |
public static final Rectangle | NOTE | This is the note format |
public static final Rectangle | LEGAL | This is the legal format |
public static final Rectangle | TABLOID | This is the tabloid format |
public static final Rectangle | EXECUTIVE | This is the executive format |
public static final Rectangle | POSTCARD | This is the postcard format |
public static final Rectangle | A0 | This is the a0 format |
public static final Rectangle | A1 | This is the a1 format |
public static final Rectangle | A2 | This is the a2 format |
public static final Rectangle | A3 | This is the a3 format |
public static final Rectangle | A4 | This is the a4 format |
public static final Rectangle | A5 | This is the a5 format |
public static final Rectangle | A6 | This is the a6 format |
public static final Rectangle | A7 | This is the a7 format |
public static final Rectangle | A8 | This is the a8 format |
public static final Rectangle | A9 | This is the a9 format |
public static final Rectangle | A10 | This is the a10 format |
public static final Rectangle | B0 | This is the b0 format |
public static final Rectangle | B1 | This is the b1 format |
public static final Rectangle | B2 | This is the b2 format |
public static final Rectangle | B3 | This is the b3 format |
public static final Rectangle | B4 | This is the b4 format |
public static final Rectangle | B5 | This is the b5 format |
public static final Rectangle | B6 | This is the b6 format |
public static final Rectangle | B7 | This is the b7 format |
public static final Rectangle | B8 | This is the b8 format |
public static final Rectangle | B9 | This is the b9 format |
public static final Rectangle | B10 | This is the b10 format |
public static final Rectangle | ARCH_E | This is the archE format |
public static final Rectangle | ARCH_D | This is the archD format |
public static final Rectangle | ARCH_C | This is the archC format |
public static final Rectangle | ARCH_B | This is the archB format |
public static final Rectangle | ARCH_A | This is the archA format |
public static final Rectangle | FLSA | This is the American Foolscap format |
public static final Rectangle | FLSE | This is the European Foolscap format |
public static final Rectangle | HALFLETTER | This is the halfletter format |
public static final Rectangle | _11X17 | This is the 11x17 format |
public static final Rectangle | ID_1 | This is the ISO 7810 ID-1 format (85.60 x 53.98 mm or 3.370 x 2.125 inch) |
public static final Rectangle | ID_2 | This is the ISO 7810 ID-2 format (A7 rotated) |
public static final Rectangle | ID_3 | This is the ISO 7810 ID-3 format (B7 rotated) |
public static final Rectangle | LEDGER | This is the ledger format |
public static final Rectangle | CROWN_QUARTO | This is the Crown Quarto format |
public static final Rectangle | LARGE_CROWN_QUARTO | This is the Large Crown Quarto format |
public static final Rectangle | DEMY_QUARTO | This is the Demy Quarto format. |
public static final Rectangle | ROYAL_QUARTO | This is the Royal Quarto format. |
public static final Rectangle | CROWN_OCTAVO | This is the Crown Octavo format |
public static final Rectangle | LARGE_CROWN_OCTAVO | This is the Large Crown Octavo format |
public static final Rectangle | DEMY_OCTAVO | This is the Demy Octavo format |
public static final Rectangle | ROYAL_OCTAVO | This is the Royal Octavo format. |
public static final Rectangle | SMALL_PAPERBACK | This is the small paperback format. |
public static final Rectangle | PENGUIN_SMALL_PAPERBACK | This is the Pengiun small paperback format. |
public static final Rectangle | PENGUIN_LARGE_PAPERBACK | This is the Penguin large paperback format. |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from com.lowagie.text.PageSize Detail: |
public static Rectangle getRectangle(String name) {
name = name.trim().toUpperCase();
int pos = name.indexOf(' ');
if (pos == -1) {
try {
Field field = PageSize.class.getDeclaredField(name.toUpperCase());
return (Rectangle) field.get(null);
} catch (Exception e) {
throw new RuntimeException("Can't find page size " + name);
}
}
else {
try {
String width = name.substring(0, pos);
String height = name.substring(pos + 1);
return new Rectangle(Float.parseFloat(width), Float.parseFloat(height));
} catch(Exception e) {
throw new RuntimeException(name + " is not a valid page size format; " + e.getMessage());
}
}
}
This method returns a Rectangle based on a String.
Possible values are the the names of a constant in this class
(for instance "A4", "LETTER",...) or a value like "595 842" |