Enum Class Orientation

java.lang.Object
java.lang.Enum<Orientation>
com.github.tadukoo.view.constants.Orientation
All Implemented Interfaces:
Serializable, Comparable<Orientation>, Constable

public enum Orientation extends Enum<Orientation>
Represents the way to orient an object in relation to given coordinates.
Version:
0.1-Alpha-SNAPSHOT
Author:
Logan Ferree (Tadukoo)
  • Enum Constant Details

    • TOP_CENTER

      public static final Orientation TOP_CENTER
      Align the object to the top, centered horizontally
    • LEFT_CENTER

      public static final Orientation LEFT_CENTER
      Left align the object, centered vertically
    • CENTER

      public static final Orientation CENTER
      Center the object (horizontally and vertically) on the specified coordinate
    • RIGHT_CENTER

      public static final Orientation RIGHT_CENTER
      Right align the object, centered vertically
    • BOTTOM_CENTER

      public static final Orientation BOTTOM_CENTER
      Align the object to the bottom, centered horizontally
    • TOP_LEFT

      public static final Orientation TOP_LEFT
      Align the object to the top left
    • TOP_RIGHT

      public static final Orientation TOP_RIGHT
      Align the object to the top right
    • BOTTOM_LEFT

      public static final Orientation BOTTOM_LEFT
      Align the object to the bottom left
    • BOTTOM_RIGHT

      public static final Orientation BOTTOM_RIGHT
      Align the object to the bottom right
  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static Orientation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Orientation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • vertical

      public Orientation.Vertical vertical()
      Returns:
      The vertical alignment to be used
    • horizontal

      public Orientation.Horizontal horizontal()
      Returns:
      The horizontal alignment to be used