Enum Class AnchorSide

java.lang.Object
java.lang.Enum<AnchorSide>
lu.kbra.modelizer_next.ui.canvas.data.AnchorSide
All Implemented Interfaces:
Serializable, Comparable<AnchorSide>, Constable

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

  • Method Details

    • values

      public static AnchorSide[] 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 AnchorSide 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
    • clockwise

      public AnchorSide clockwise()
      Returns the next anchor side in clockwise order.
      Returns:
      the clockwise result
    • counterClockwise

      public AnchorSide counterClockwise()
      Returns the next anchor side in counter-clockwise order.
      Returns:
      the counter clockwise result
    • isLeftRight

      public boolean isLeftRight()
      Returns:
      true if current element represents LEFT or RIGHT; otherwise false
    • isTopBottom

      public boolean isTopBottom()
      Returns:
      true if current element represents TOP or BOTTOM; otherwise false