Enum TextAlign

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

public enum TextAlign extends Enum<TextAlign>
文本内容的当前对齐方式
Since:
2020-05-10 18:05:47
Author:
权观宇
  • Enum Constant Details

    • start

      public static final TextAlign start
      文本在指定的位置开始
    • end

      public static final TextAlign end
      文本在指定的位置结束。
    • center

      public static final TextAlign center
      文本的中心被放置在指定的位置
    • left

      public static final TextAlign left
      文本左对齐
  • Method Details

    • values

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