Class PageSize
- java.lang.Object
-
- de.erichseifert.vectorgraphics2d.util.PageSize
-
public class PageSize extends java.lang.ObjectClass that represents a page with a specified origin and size. The class is immutable and can be initialized with coordinates and dimensions or only dimensions:
PageSize a3 = new PageSize(0.0, 0.0, 297.0, 420.0); PageSize a4 = new PageSize(210.0, 297.0);
For convenience the class contains static constants for common page sizes:
PageSize a4 = PageSize.A4; PageSize letter = PageSize.LETTER;
-
-
Field Summary
Fields Modifier and Type Field Description static PageSizeA3static PageSizeA4static PageSizeA5private doubleheightstatic PageSizeLEDGERstatic PageSizeLEGALstatic PageSizeLETTERprivate static doubleMM_PER_INCHstatic PageSizeTABLOIDprivate doublewidthprivate doublexprivate doubley
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetHeight()PageSizegetLandscape()PageSizegetPortrait()doublegetWidth()doublegetX()doublegetY()
-
-
-
Field Detail
-
MM_PER_INCH
private static final double MM_PER_INCH
- See Also:
- Constant Field Values
-
A3
public static final PageSize A3
-
A4
public static final PageSize A4
-
A5
public static final PageSize A5
-
LETTER
public static final PageSize LETTER
-
LEGAL
public static final PageSize LEGAL
-
TABLOID
public static final PageSize TABLOID
-
LEDGER
public static final PageSize LEDGER
-
x
private final double x
-
y
private final double y
-
width
private final double width
-
height
private final double height
-
-