net.coobird.thumbnailator.util.exif
Enum Orientation

java.lang.Object
  extended by java.lang.Enum<Orientation>
      extended by net.coobird.thumbnailator.util.exif.Orientation
All Implemented Interfaces:
Serializable, Comparable<Orientation>

public enum Orientation
extends 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.

Author:
coobird

Enum Constant Summary
BOTTOM_LEFT
          Orientation 4.
BOTTOM_RIGHT
          Orientation 3.
LEFT_BOTTOM
          Orientation 8.
LEFT_TOP
          Orientation 5.
RIGHT_BOTTOM
          Orientation 7.
RIGHT_TOP
          Orientation 6.
TOP_LEFT
          Orientation 1.
TOP_RIGHT
          Orientation 2.
 
Method Summary
 String toString()
          Returns a textual String reprensentation of this enum.
static Orientation typeOf(int value)
          Returns the Orientation corresponding to the given orientation value.
static Orientation valueOf(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're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TOP_LEFT

public static final Orientation TOP_LEFT
Orientation 1.


TOP_RIGHT

public static final Orientation TOP_RIGHT
Orientation 2.


BOTTOM_RIGHT

public static final Orientation BOTTOM_RIGHT
Orientation 3.


BOTTOM_LEFT

public static final Orientation BOTTOM_LEFT
Orientation 4.


LEFT_TOP

public static final Orientation LEFT_TOP
Orientation 5.


RIGHT_TOP

public static final Orientation RIGHT_TOP
Orientation 6.


RIGHT_BOTTOM

public static final Orientation RIGHT_BOTTOM
Orientation 7.


LEFT_BOTTOM

public static final Orientation LEFT_BOTTOM
Orientation 8.

Method Detail

values

public static final Orientation[] values()
Returns an array containing the constants of this enum type, in the order they're 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're declared

valueOf

public static Orientation 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 name

typeOf

public static Orientation typeOf(int value)
Returns the Orientation corresponding to the given orientation value.

Parameters:
value - The orientation value.
Returns:
Orientation corresponding to the orientation value. Return null if the given value does not correspond to a valid Orientation.

toString

public String toString()
Returns a textual String reprensentation of this enum.

Overrides:
toString in class Enum<Orientation>
Returns:
A textual representation of this enum.


Copyright © 2014. All rights reserved.