| Enum Constant and Description |
|---|
A_SIZE |
B_SIZE |
C_SIZE |
D_SIZE |
E_SIZE |
LEGAL |
LETTER |
| Modifier and Type | Method and Description |
|---|---|
static PaperSize |
forName(java.lang.String name) |
double |
getHeightCentimeters() |
double |
getHeightInches() |
double |
getHeightPixels() |
double |
getHeightPoints() |
double |
getMarginCentimeters() |
double |
getMarginInches() |
double |
getMarginPixels() |
double |
getMarginPoints() |
java.lang.String |
getName() |
double |
getWidthCentimeters() |
double |
getWidthInches() |
double |
getWidthPixels() |
double |
getWidthPoints() |
static PaperSize |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PaperSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaperSize LETTER
public static final PaperSize LEGAL
public static final PaperSize A_SIZE
public static final PaperSize B_SIZE
public static final PaperSize C_SIZE
public static final PaperSize D_SIZE
public static final PaperSize E_SIZE
public static PaperSize[] values()
for (PaperSize c : PaperSize.values()) System.out.println(c);
public static PaperSize 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 static PaperSize forName(java.lang.String name)
public java.lang.String getName()
public double getWidthInches()
public double getHeightInches()
public double getMarginInches()
public double getWidthCentimeters()
public double getHeightCentimeters()
public double getMarginCentimeters()
public double getWidthPoints()
public double getHeightPoints()
public double getMarginPoints()
public double getWidthPixels()
public double getHeightPixels()
public double getMarginPixels()