public enum PaperFormat extends java.lang.Enum<PaperFormat>
Enum Constant and Description |
---|
A0
A0
|
A1
A1
|
A2
A2
|
A3
A3
|
A4
A4
|
A5
A5
|
A6
A6
|
LEGAL
LEGAL
|
LETTER
LETTER
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
A format's description
|
private double |
height
A paper width given in the provided units
|
private java.lang.String |
units
Defines units in which document's width and height are expressed.
|
private double |
width
A paper width given in the provided units
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns its description
|
double |
getHeight()
Returns a height of paper having this format, expressed in the format's units.
|
java.lang.String |
getUnits()
Returns units in which paper width and height are expressed
|
double |
getWidth()
Returns a width of paper having this format, expressed in the format's units.
|
static PaperFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PaperFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaperFormat LETTER
public static final PaperFormat LEGAL
public static final PaperFormat A0
public static final PaperFormat A1
public static final PaperFormat A2
public static final PaperFormat A3
public static final PaperFormat A4
public static final PaperFormat A5
public static final PaperFormat A6
private final java.lang.String description
private final double width
private final double height
private final java.lang.String units
public static PaperFormat[] values()
for (PaperFormat c : PaperFormat.values()) System.out.println(c);
public static PaperFormat 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 getDescription()
public double getWidth()
public double getHeight()
public java.lang.String getUnits()