Package com.pdftools.geometry.units
Enum Size.PaperSizes
- All Implemented Interfaces:
Serializable,Comparable<Size.PaperSizes>
- Enclosing class:
Size
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPaper size with dimensions0.297m x 0.420m, which is part of the A series format paper size defined by the ISO 216 standard.Paper size with dimensions0.210m x 0.297, which is part of the A series format paper size defined by the ISO 216 standard.Paper size with dimensions0.148m x 0.210m, which is part of the A series format paper size defined by the ISO 216 standard.Paper size with dimensions8.5in x 14in, which is mainly used in North America.Paper size with dimensions8.5in x 11in, which is mainly used in North America. -
Method Summary
Modifier and TypeMethodDescriptionstatic Size.PaperSizesGet the paper size enum value from its name, e.g.getName()Get the paper size's name.toString()static Size.PaperSizesReturns 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.
-
Enum Constant Details
-
A3
Paper size with dimensions0.297m x 0.420m, which is part of the A series format paper size defined by the ISO 216 standard. -
A4
Paper size with dimensions0.210m x 0.297, which is part of the A series format paper size defined by the ISO 216 standard. -
A5
Paper size with dimensions0.148m x 0.210m, which is part of the A series format paper size defined by the ISO 216 standard. -
LETTER
Paper size with dimensions8.5in x 11in, which is mainly used in North America. -
LEGAL
Paper size with dimensions8.5in x 14in, which is mainly used in North America.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getName
Get the paper size's name. -
toString
- Overrides:
toStringin classEnum<Size.PaperSizes>
-
get
Get the paper size enum value from its name, e.g. A4, or Letter.- Parameters:
name- the name, e.g. A4, or Letter.- Returns:
-