Enum EPaperFormat
- java.lang.Object
-
- java.lang.Enum<EPaperFormat>
-
- org.hortonmachine.gears.utils.images.EPaperFormat
-
- All Implemented Interfaces:
Serializable,Comparable<EPaperFormat>
public enum EPaperFormat extends Enum<EPaperFormat>
Enumeration of dimensions of the A series paper sizes, as defined by ISO 216.- Since:
- 0.7.6
- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A0LandscapeA0PortraitA1LandscapeA1PortraitA2LandscapeA2PortraitA3LandscapeA3PortraitA4LandscapeA4PortraitA5LandscapeA5Portrait
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intheight()static EPaperFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static EPaperFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.intwidth()
-
-
-
Enum Constant Detail
-
A0Landscape
public static final EPaperFormat A0Landscape
-
A0Portrait
public static final EPaperFormat A0Portrait
-
A1Landscape
public static final EPaperFormat A1Landscape
-
A1Portrait
public static final EPaperFormat A1Portrait
-
A2Landscape
public static final EPaperFormat A2Landscape
-
A2Portrait
public static final EPaperFormat A2Portrait
-
A3Landscape
public static final EPaperFormat A3Landscape
-
A3Portrait
public static final EPaperFormat A3Portrait
-
A4Landscape
public static final EPaperFormat A4Landscape
-
A4Portrait
public static final EPaperFormat A4Portrait
-
A5Landscape
public static final EPaperFormat A5Landscape
-
A5Portrait
public static final EPaperFormat A5Portrait
-
-
Method Detail
-
values
public static EPaperFormat[] 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 (EPaperFormat c : EPaperFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EPaperFormat 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
-
width
public int width()
-
height
public int height()
-
-