Package com.twelvemonkeys.contrib.exif
Enum Orientation
- java.lang.Object
-
- java.lang.Enum<Orientation>
-
- com.twelvemonkeys.contrib.exif.Orientation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Orientation>
public enum Orientation extends java.lang.Enum<Orientation>
Orientation.- Version:
- : Orientation.java,v 1.0 10/07/2020 harald.kuhr
- Author:
- Harald Kuhr
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FlipH
FlipHRotate90
FlipV
FlipVRotate90
Normal
Rotate180
Rotate270
Rotate90
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Orientation
fromMetadataOrientation(java.lang.String orientationName)
static Orientation
fromTIFFOrientation(int tiffOrientation)
int
value()
static Orientation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Orientation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Normal
public static final Orientation Normal
-
FlipH
public static final Orientation FlipH
-
Rotate180
public static final Orientation Rotate180
-
FlipV
public static final Orientation FlipV
-
FlipVRotate90
public static final Orientation FlipVRotate90
-
Rotate270
public static final Orientation Rotate270
-
FlipHRotate90
public static final Orientation FlipHRotate90
-
Rotate90
public static final Orientation Rotate90
-
-
Method Detail
-
values
public static Orientation[] 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 (Orientation c : Orientation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Orientation valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
fromMetadataOrientation
public static Orientation fromMetadataOrientation(java.lang.String orientationName)
-
fromTIFFOrientation
public static Orientation fromTIFFOrientation(int tiffOrientation)
-
-