Enum Orientation
- java.lang.Object
-
- java.lang.Enum<Orientation>
-
- net.coobird.thumbnailator.util.exif.Orientation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Orientation>
public enum Orientation extends java.lang.Enum<Orientation>
Representation for the Orientation (Tag 274) in the Exif metadata, as defined in Section 4.6.4 of the Exif Specification version 2.3.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTTOM_LEFTOrientation 4.BOTTOM_RIGHTOrientation 3.LEFT_BOTTOMOrientation 8.LEFT_TOPOrientation 5.RIGHT_BOTTOMOrientation 7.RIGHT_TOPOrientation 6.TOP_LEFTOrientation 1.TOP_RIGHTOrientation 2.
-
Field Summary
Fields Modifier and Type Field Description private intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateOrientation(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()Returns a textualStringreprensentation of this enum.static OrientationtypeOf(int value)Returns theOrientationcorresponding to the given orientation value.static OrientationvalueOf(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
-
TOP_LEFT
public static final Orientation TOP_LEFT
Orientation 1.- First row: visual top of the image
- First column: visual left-hand side of the image
-
TOP_RIGHT
public static final Orientation TOP_RIGHT
Orientation 2.- First row: visual top of the image
- First column: visual right-hand side of the image
-
BOTTOM_RIGHT
public static final Orientation BOTTOM_RIGHT
Orientation 3.- First row: visual bottom of the image
- First column: visual right-hand side of the image
-
BOTTOM_LEFT
public static final Orientation BOTTOM_LEFT
Orientation 4.- First row: visual bottom of the image
- First column: visual left-hand side of the image
-
LEFT_TOP
public static final Orientation LEFT_TOP
Orientation 5.- First row: visual left-hand side of the image
- First column: visual top of the image
-
RIGHT_TOP
public static final Orientation RIGHT_TOP
Orientation 6.- First row: visual right-hand side of the image
- First column: visual top of the image
-
RIGHT_BOTTOM
public static final Orientation RIGHT_BOTTOM
Orientation 7.- First row: visual right-hand side of the image
- First column: visual bottom of the image
-
LEFT_BOTTOM
public static final Orientation LEFT_BOTTOM
Orientation 8.- First row: visual left-hand side of the image
- First column: visual bottom of the image
-
-
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
-
typeOf
public static Orientation typeOf(int value)
Returns theOrientationcorresponding to the given orientation value.- Parameters:
value- The orientation value.- Returns:
Orientationcorresponding to the orientation value. Returnnullif the given value does not correspond to a validOrientation.
-
toString
public java.lang.String toString()
Returns a textualStringreprensentation of this enum.- Overrides:
toStringin classjava.lang.Enum<Orientation>- Returns:
- A textual representation of this enum.
-
-