Enum Orientation

java.lang.Object
java.lang.Enum<Orientation>
se.datadosen.util.Orientation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Orientation>, java.lang.constant.Constable

public enum Orientation
extends java.lang.Enum<Orientation>
  • Enum Constant Details

  • Method Details

    • values

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

      public int getValue()
    • getAngle

      public int getAngle()
      Returns:
      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​(java.lang.String name)