Enum Class ObjectAnchor

java.lang.Object
java.lang.Enum<ObjectAnchor>
com.xebisco.yield.ObjectAnchor
All Implemented Interfaces:
Serializable, Comparable<ObjectAnchor>, Constable

public enum ObjectAnchor extends Enum<ObjectAnchor>
Enum representing different object anchors for entities. Used for rendering.
  • Enum Constant Details

    • CENTER

      public static final ObjectAnchor CENTER
      Represents the center of an object.
    • WEST

      public static final ObjectAnchor WEST
      Represents the west side of an object.
    • EAST

      public static final ObjectAnchor EAST
      Represents the east side of an object.
    • NORTH

      public static final ObjectAnchor NORTH
      Represents the north side of an object.
    • SOUTH

      public static final ObjectAnchor SOUTH
      Represents the south side of an object.
    • NORTHWEST

      public static final ObjectAnchor NORTHWEST
      Represents the northwest corner of an object.
    • NORTHEAST

      public static final ObjectAnchor NORTHEAST
      Represents the northeast corner of an object.
    • SOUTHWEST

      public static final ObjectAnchor SOUTHWEST
      Represents the southwest corner of an object.
    • SOUTHEAST

      public static final ObjectAnchor SOUTHEAST
      Represents the southeast corner of an object.
  • Method Details

    • values

      public static ObjectAnchor[] 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 ObjectAnchor 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