Class PageSize
- java.lang.Object
-
- de.erichseifert.vectorgraphics2d.util.PageSize
-
public class PageSize extends java.lang.Object
Class 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 PageSize
A3
static PageSize
A4
static PageSize
A5
private double
height
static PageSize
LEDGER
static PageSize
LEGAL
static PageSize
LETTER
private static double
MM_PER_INCH
static PageSize
TABLOID
private double
width
private double
x
private double
y
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHeight()
PageSize
getLandscape()
PageSize
getPortrait()
double
getWidth()
double
getX()
double
getY()
-
-
-
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
-
-