public enum PaperSizeEnum extends Enum<PaperSizeEnum> implements NamedEnum
| Enum Constant and Description |
|---|
A2
Specifies the A2 paper size.
|
A3
Specifies the A3 paper size.
|
A4
Specifies the A4 paper size.
|
A5
Specifies the A5 paper size.
|
B4
Specifies the B4 paper size.
|
B5
Specifies the B5 paper size.
|
C3
Specifies the C3 paper size.
|
C4
Specifies the C4 paper size.
|
C5
Specifies the C5 paper size.
|
C6
Specifies the C6 paper size.
|
ENVELOPE_DL
Specifies the DL Envelope paper size.
|
EXECUTIVE
Specifies the Executive paper size.
|
LEDGER
Specifies the Ledger paper size.
|
LEGAL
Specifies the Legal paper size.
|
LETTER
Specifies the Letter paper size.
|
TABLOID
Specifies the Tabloid paper size.
|
UNDEFINED
Specifies an undefined paper size.
|
| Modifier and Type | Method and Description |
|---|---|
static PaperSizeEnum |
getByName(String name) |
int |
getHeight() |
String |
getName() |
byte |
getOoxmlValue() |
int |
getWidth() |
static PaperSizeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaperSizeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaperSizeEnum UNDEFINED
public static final PaperSizeEnum LETTER
public static final PaperSizeEnum LEGAL
public static final PaperSizeEnum EXECUTIVE
public static final PaperSizeEnum A2
public static final PaperSizeEnum A3
public static final PaperSizeEnum A4
public static final PaperSizeEnum A5
public static final PaperSizeEnum TABLOID
public static final PaperSizeEnum LEDGER
public static final PaperSizeEnum ENVELOPE_DL
public static final PaperSizeEnum B4
public static final PaperSizeEnum B5
public static final PaperSizeEnum C3
public static final PaperSizeEnum C4
public static final PaperSizeEnum C5
public static final PaperSizeEnum C6
public static PaperSizeEnum[] values()
for (PaperSizeEnum c : PaperSizeEnum.values()) System.out.println(c);
public static PaperSizeEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final byte getOoxmlValue()
public final int getWidth()
public final int getHeight()
public static PaperSizeEnum getByName(String name)
Copyright © 2017. All rights reserved.