Enum Position

java.lang.Object
java.lang.Enum<Position>
org.ofdrw.layout.element.Position
All Implemented Interfaces:
Serializable, Comparable<Position>, java.lang.constant.Constable

public enum Position extends Enum<Position>
定位方式
Since:
2020-02-28 01:40:26
Author:
权观宇
  • Enum Constant Details

    • Static

      public static final Position Static
      静态定位(由渲染器决定)

      默认值

    • Relative

      public static final Position Relative
      相对定位

      使用: left、right在段内定位

    • Absolute

      public static final Position Absolute
      绝对定位

      使用:x、y 确定位置 并且需要有确定的 Width 和 Height

  • Method Details

    • values

      public static Position[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Position valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null