Enum AlignmentType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AlignmentType>

    public enum AlignmentType
    extends java.lang.Enum<AlignmentType>
    Represents an element's relative position in relation to another element.
    Since:
    1.2.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BOTTOM_CENTER
      The specific point at the middle of the bottom side of bounding rectangle.
      BOTTOM_LEFT
      The specific point at the bottom-left corner of the bounding rectangle.
      BOTTOM_RIGHT
      The specific point at the bottom-right corner of the bounding rectangle.
      CENTER
      The specific point at the very center of the bounding rectangle.
      MIDDLE_LEFT
      The specific point at the middle of the left side of bounding rectangle.
      MIDDLE_RIGHT
      The specific point at the middle of the right side of bounding rectangle.
      TOP_CENTER
      The specific point at the center of the top side of the bounding rectangle.
      TOP_LEFT
      The specific point at the top-left corner of the bounding rectangle.
      TOP_RIGHT
      The specific point at the top-right corner of the bounding rectangle.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AlignmentType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AlignmentType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • MIDDLE_LEFT

        public static final AlignmentType MIDDLE_LEFT
        The specific point at the middle of the left side of bounding rectangle.
      • MIDDLE_RIGHT

        public static final AlignmentType MIDDLE_RIGHT
        The specific point at the middle of the right side of bounding rectangle.
      • TOP_CENTER

        public static final AlignmentType TOP_CENTER
        The specific point at the center of the top side of the bounding rectangle.
      • TOP_LEFT

        public static final AlignmentType TOP_LEFT
        The specific point at the top-left corner of the bounding rectangle.
      • TOP_RIGHT

        public static final AlignmentType TOP_RIGHT
        The specific point at the top-right corner of the bounding rectangle.
      • BOTTOM_CENTER

        public static final AlignmentType BOTTOM_CENTER
        The specific point at the middle of the bottom side of bounding rectangle.
      • BOTTOM_LEFT

        public static final AlignmentType BOTTOM_LEFT
        The specific point at the bottom-left corner of the bounding rectangle.
      • BOTTOM_RIGHT

        public static final AlignmentType BOTTOM_RIGHT
        The specific point at the bottom-right corner of the bounding rectangle.
      • CENTER

        public static final AlignmentType CENTER
        The specific point at the very center of the bounding rectangle.
    • Method Detail

      • values

        public static AlignmentType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AlignmentType c : AlignmentType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AlignmentType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null