Enum 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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Orientation​(int value)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.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​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, 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.
        • 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
    • Field Detail

      • value

        private int value
    • Constructor Detail

      • Orientation

        private Orientation​(int value)
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • 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 java.lang.String toString()
        Returns a textual String reprensentation of this enum.
        Overrides:
        toString in class java.lang.Enum<Orientation>
        Returns:
        A textual representation of this enum.