public static enum Size.PaperSizes extends java.lang.Enum<Size.PaperSizes>
Enum Constant | Description |
---|---|
A3 |
Paper size with dimensions
0.297m x 0.420m , which is part of the A series format paper size defined by the ISO 216 standard. |
A4 |
Paper size with dimensions
0.210m x 0.297 , which is part of the A series format paper size defined by the ISO 216 standard. |
A5 |
Paper size with dimensions
0.148m x 0.210m , which is part of the A series format paper size defined by the ISO 216 standard. |
LEGAL |
Paper size with dimensions
8.5in x 14in , which is mainly used in North America. |
LETTER |
Paper size with dimensions
8.5in x 11in , which is mainly used in North America. |
Modifier and Type | Method | Description |
---|---|---|
static Size.PaperSizes |
get(java.lang.String name) |
Get the paper size enum value from its name, e.g.
|
java.lang.String |
getName() |
Get the paper size's name.
|
java.lang.String |
toString() |
|
static Size.PaperSizes |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Size.PaperSizes[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Size.PaperSizes A3
0.297m x 0.420m
, which is part of the A series format paper size defined by the ISO 216 standard.public static final Size.PaperSizes A4
0.210m x 0.297
, which is part of the A series format paper size defined by the ISO 216 standard.public static final Size.PaperSizes A5
0.148m x 0.210m
, which is part of the A series format paper size defined by the ISO 216 standard.public static final Size.PaperSizes LETTER
8.5in x 11in
, which is mainly used in North America.public static final Size.PaperSizes LEGAL
8.5in x 14in
, which is mainly used in North America.public static Size.PaperSizes[] values()
for (Size.PaperSizes c : Size.PaperSizes.values()) System.out.println(c);
public static Size.PaperSizes valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<Size.PaperSizes>
public static Size.PaperSizes get(java.lang.String name)
name
- the name, e.g. A4, or Letter.