Module hanyaeger

Enum Class AnchorPoint

java.lang.Object
java.lang.Enum<AnchorPoint>
com.github.hanyaeger.api.AnchorPoint
All Implemented Interfaces:
Serializable, Comparable<AnchorPoint>, Constable

public enum AnchorPoint extends Enum<AnchorPoint>
An AnchorPoint denotes the point of an YaegerEntity which is being used for placement on the x,y-coordinate.
  • Enum Constant Details

    • TOP_LEFT

      public static final AnchorPoint TOP_LEFT
      Use the top-left corner of the bounding box as the Anchor Point.
    • TOP_CENTER

      public static final AnchorPoint TOP_CENTER
      Use the top-center point of the bounding box as the Anchor Point.
    • TOP_RIGHT

      public static final AnchorPoint TOP_RIGHT
      Use the top-right corner of the bounding box as the Anchor Point.
    • CENTER_LEFT

      public static final AnchorPoint CENTER_LEFT
      Use the center-left point of the bounding box as the Anchor Point.
    • CENTER_CENTER

      public static final AnchorPoint CENTER_CENTER
      Use the center point of the bounding box as the Anchor Point.
    • CENTER_RIGHT

      public static final AnchorPoint CENTER_RIGHT
      Use the center-right point of the bounding box as the Anchor Point.
    • BOTTOM_LEFT

      public static final AnchorPoint BOTTOM_LEFT
      Use the bottom-left corner of the bounding box as the Anchor Point.
    • BOTTOM_CENTER

      public static final AnchorPoint BOTTOM_CENTER
      Use the bottom-center point of the bounding box as the Anchor Point.
    • BOTTOM_RIGHT

      public static final AnchorPoint BOTTOM_RIGHT
      Use the bottom-right corner of the bounding box as the Anchor Point.
  • Method Details

    • values

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