public class PageSize extends Object implements Dimensions
Dimensions.Units
Modifier and Type | Field and Description |
---|---|
static PageSize |
A0
2384 x 3370 points
|
static PageSize |
A1
1684 x 2384 points
|
static PageSize |
A10
74 x 105 points
|
static PageSize |
A2
1190 x 1684 points
|
static PageSize |
A3
842 x 1190 points.
|
static PageSize |
A4
595 x 842 points.
|
static PageSize |
A5
421 x 595 points.
|
static PageSize |
A6
297 x 421 points
|
static PageSize |
A7
210 x 297 points
|
static PageSize |
A8
148 x 210 points
|
static PageSize |
A9
105 x 148 points
|
static PageSize |
ArchA
648 x 864 points
|
static PageSize |
ArchB
864 x 1296 points
|
static PageSize |
ArchC
1296 x 1728 points
|
static PageSize |
ArchD
1728 x 2592 points
|
static PageSize |
ArchE
2592 x 3456 points
|
static PageSize |
ArchE1
2160 x 3024 points
|
static PageSize |
B4
This matches the standard, ISO dimensions: 250mm x 353mm.
|
static PageSize |
B5
This matches the standard, ISO dimensions: 176mm x 250mm.
|
static PageSize |
HALFLETTER
396 x 612 points
|
float |
height
height in typographic points
|
static PageSize |
ISOB0
2836 x 4008 points
|
static PageSize |
ISOB1
2004 x 2836 points
|
static PageSize |
ISOB2
1418 x 2004 points
|
static PageSize |
ISOB3
1002 x 1418 points
|
static PageSize |
ISOB4
709 x 1002 points
|
static PageSize |
ISOB5
501 x 709 points
|
static PageSize |
JIS_B4
This correspond to the JIS standard dimensions: 257mm x 364mm.
|
static PageSize |
JIS_B5
This correspond to the JIS standard dimensions: 182mm x 257mm.
|
static PageSize |
LEDGER
1224 x 792 points.
|
static PageSize |
LEGAL
612 x 1008 points.
|
static PageSize |
LETTER
612 x 792 points.
|
static PageSize |
NOTE
540 x 720 points
|
boolean |
rotated
landscape orientation flag
|
static PageSize |
TABLOID
792 x 1224 points
|
float |
width
withs in typographic points
|
MM_PER_INCH, PIXELS_PER_POINT, POINTS_PER_INCH, POINTS_PER_MM
Constructor and Description |
---|
PageSize(float width,
float height)
creates an instance of page size object
|
PageSize(float width,
float height,
Dimensions.Units units)
creates an instance of page size object in given dimension units
|
Modifier and Type | Method and Description |
---|---|
static PageSize |
getInstance(String name) |
float |
mmHeight() |
float |
mmWidth() |
PageSize |
rotate() |
String |
toString() |
public static final PageSize B5
public static final PageSize B4
public static final PageSize JIS_B5
public static final PageSize JIS_B4
public static final PageSize A10
public static final PageSize A9
public static final PageSize A8
public static final PageSize A7
public static final PageSize A6
public static final PageSize A5
public static final PageSize A4
public static final PageSize A3
public static final PageSize A2
public static final PageSize A1
public static final PageSize A0
public static final PageSize ISOB5
public static final PageSize ISOB4
public static final PageSize ISOB3
public static final PageSize ISOB2
public static final PageSize ISOB1
public static final PageSize ISOB0
public static final PageSize HALFLETTER
public static final PageSize LETTER
public static final PageSize TABLOID
public static final PageSize LEDGER
public static final PageSize NOTE
public static final PageSize LEGAL
public static final PageSize ArchA
public static final PageSize ArchB
public static final PageSize ArchC
public static final PageSize ArchD
public static final PageSize ArchE
public static final PageSize ArchE1
public float width
public float height
public boolean rotated
public PageSize(float width, float height, Dimensions.Units units)
width
- in typographic pointsheight
- in typographic pointsunits
- typographic points, millimeters or screen pixels (assuming 72dpi conversion factor)public PageSize(float width, float height)
width
- in typographic pointsheight
- in typographic pointspublic PageSize rotate()
public float mmWidth()
public float mmHeight()
public static PageSize getInstance(String name) throws IllegalArgumentException, IllegalAccessException
Revision 4.0.15 / 20220727-0149