Enum Class Anchor

java.lang.Object
java.lang.Enum<Anchor>
org.jpedal.constants.Anchor
All Implemented Interfaces:
Serializable, Comparable<Anchor>, Constable

public enum Anchor extends Enum<Anchor>
Represents the reference point (anchor) used when scaling or transforming a rectangular box. The anchor determines the fixed point of the box during scaling, with the rest of the box expanding or contracting relative to it.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Box scales relative to the midpoint of its bottom edge.
    Box scales relative to its bottom-left corner.
    Box scales relative to its bottom-right corner.
    Box scales relative to its center point.
    Box scales relative to the midpoint of its left edge.
    Box scales relative to the midpoint of its right edge.
    Box scales relative to the midpoint of its top edge.
    Box scales relative to its top-left corner.
    Box scales relative to its top-right corner.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Anchor
    Returns the enum constant of this class with the specified name.
    static Anchor[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CENTER

      public static final Anchor CENTER
      Box scales relative to its center point.
    • TOP

      public static final Anchor TOP
      Box scales relative to the midpoint of its top edge.
    • LEFT

      public static final Anchor LEFT
      Box scales relative to the midpoint of its left edge.
    • BOTTOM

      public static final Anchor BOTTOM
      Box scales relative to the midpoint of its bottom edge.
    • TOP_LEFT

      public static final Anchor TOP_LEFT
      Box scales relative to its top-left corner.
    • TOP_RIGHT

      public static final Anchor TOP_RIGHT
      Box scales relative to its top-right corner.
    • BOTTOM_LEFT

      public static final Anchor BOTTOM_LEFT
      Box scales relative to its bottom-left corner.
    • BOTTOM_RIGHT

      public static final Anchor BOTTOM_RIGHT
      Box scales relative to its bottom-right corner.
  • Method Details

    • values

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