Enum Orientation

All Implemented Interfaces:
Serializable, Comparable<Orientation>, Constable

public enum Orientation extends Enum<Orientation>
  • Enum Constant Details

    • normal

      public static final Orientation normal
    • normalFlipped

      public static final Orientation normalFlipped
    • rightFlipped

      public static final Orientation rightFlipped
    • upsideDown

      public static final Orientation upsideDown
    • upsideDownFlipped

      public static final Orientation upsideDownFlipped
    • left

      public static final Orientation left
    • leftFlipped

      public static final Orientation leftFlipped
  • Method Details

    • values

      public static Orientation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
    • getAngle

      public int getAngle()
      angle in degrees
    • next

      public Orientation next()
    • previous

      public Orientation previous()
    • isFlipped

      public boolean isFlipped()
    • isRotated

      public boolean isRotated()
    • flipped

      public Orientation flipped()
    • fromValue

      public static Orientation fromValue(int value)
    • fromName

      public static Orientation fromName(String name)