Package net.sf.jasperreports.engine.util
Enum ExifOrientationEnum
- java.lang.Object
-
- java.lang.Enum<ExifOrientationEnum>
-
- net.sf.jasperreports.engine.util.ExifOrientationEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<ExifOrientationEnum>
public enum ExifOrientationEnum extends Enum<ExifOrientationEnum>
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LEFT
NORMAL
RIGHT
UPSIDE_DOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExifOrientationEnum
getByValue(int orientation)
int
getOrientation()
static ExifOrientationEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExifOrientationEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final ExifOrientationEnum NORMAL
-
UPSIDE_DOWN
public static final ExifOrientationEnum UPSIDE_DOWN
-
RIGHT
public static final ExifOrientationEnum RIGHT
-
LEFT
public static final ExifOrientationEnum LEFT
-
-
Method Detail
-
values
public static ExifOrientationEnum[] 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 (ExifOrientationEnum c : ExifOrientationEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExifOrientationEnum 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
-
getOrientation
public final int getOrientation()
-
getByValue
public static ExifOrientationEnum getByValue(int orientation)
-
-