Enum PaperSizeEnum
- java.lang.Object
-
- java.lang.Enum<PaperSizeEnum>
-
- net.sf.jasperreports.engine.export.ooxml.type.PaperSizeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<PaperSizeEnum>
,NamedEnum
public enum PaperSizeEnum extends Enum<PaperSizeEnum> implements NamedEnum
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.sf.jasperreports.engine.type.NamedEnum
getDefault
-
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final PaperSizeEnum UNDEFINED
Specifies an undefined paper size.
-
LETTER
public static final PaperSizeEnum LETTER
Specifies the Letter paper size. ANSI X3.151-1987 - "Letter" (216 x 279 mm)
-
LEGAL
public static final PaperSizeEnum LEGAL
Specifies the Legal paper size. ANSI X3.151-1987 - "Legal" (216 x 356 mm)
-
EXECUTIVE
public static final PaperSizeEnum EXECUTIVE
Specifies the Executive paper size. ANSI X3.151-1987 - "Executive" (190 x 254 mm)
-
A2
public static final PaperSizeEnum A2
Specifies the A2 paper size. ISO 216 - "A2" (420 x 594 mm)
-
A3
public static final PaperSizeEnum A3
Specifies the A3 paper size. ISO 216 - "A3" (297 x 420 mm)
-
A4
public static final PaperSizeEnum A4
Specifies the A4 paper size. ISO 216 - "A4" (210 x 297 mm)
-
A5
public static final PaperSizeEnum A5
Specifies the A5 paper size. ISO 216 - "A5" (148 x 210 mm)
-
TABLOID
public static final PaperSizeEnum TABLOID
Specifies the Tabloid paper size. ANSI X3.151-1987 - "Ledger/Tabloid" (279 x 432 mm)
-
LEDGER
public static final PaperSizeEnum LEDGER
Specifies the Ledger paper size. ANSI X3.151-1987 - "Ledger/Tabloid" (432 x 279 mm)
-
ENVELOPE_DL
public static final PaperSizeEnum ENVELOPE_DL
Specifies the DL Envelope paper size. ISO 269 - "Envelope DL" (110 x 220 mm)
-
B4
public static final PaperSizeEnum B4
Specifies the B4 paper size. ISO 216 - "B4" (250 x 353 mm)
-
B5
public static final PaperSizeEnum B5
Specifies the B5 paper size. ISO 216 - "B5" (176 x 250 mm)
-
C3
public static final PaperSizeEnum C3
Specifies the C3 paper size. ISO 216 - "C3" (324 x 458 mm)
-
C4
public static final PaperSizeEnum C4
Specifies the C4 paper size. ISO 216 - "C4" (229 x 324 mm)
-
C5
public static final PaperSizeEnum C5
Specifies the C5 paper size. ISO 216 - "C5" (162 x 229 mm)
-
C6
public static final PaperSizeEnum C6
Specifies the C6 paper size. ISO 216 - "C6" (114 x 162 mm)
-
-
Method Detail
-
values
public static PaperSizeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PaperSizeEnum c : PaperSizeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaperSizeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getOoxmlValue
public final byte getOoxmlValue()
-
getWidth
public final int getWidth()
-
getHeight
public final int getHeight()
-
getByName
public static PaperSizeEnum getByName(String name)
-
-