Enum Class TextAttribute

java.lang.Object
java.lang.Enum<TextAttribute>
ro.sync.exml.view.graphics.TextAttribute
All Implemented Interfaces:
Serializable, Comparable<TextAttribute>, Constable

@API(type=EXTENDABLE, src=PRIVATE) public enum TextAttribute extends Enum<TextAttribute>
Constants for the AttributedString attributes. Similar to the TextAttribute class.
  • Enum Constant Details

    • FOREGROUND

      public static final TextAttribute FOREGROUND
      The foreground color for a piece of AttributedString.
    • WEIGHT

      public static final TextAttribute WEIGHT
      The font weight of AttributedString.
    • WEIGHT_BOLD

      public static final TextAttribute WEIGHT_BOLD
      Value for the weight.
    • POSTURE

      public static final TextAttribute POSTURE
      The font posture (like italic, regular)
    • POSTURE_REGULAR

      public static final TextAttribute POSTURE_REGULAR
      The standard posture value, upright. This is the default value for POSTURE.
      See Also:
    • POSTURE_OBLIQUE

      public static final TextAttribute POSTURE_OBLIQUE
      The standard italic posture value.
      See Also:
    • RELATIVE_SIZE

      public static final TextAttribute RELATIVE_SIZE
      The relative size of the font
    • RELATIVE_SIZE_SMALL

      public static final TextAttribute RELATIVE_SIZE_SMALL
      A value for the relative size. Imposes a smaller size for the font.
      See Also:
    • RUN_DIRECTION

      public static final TextAttribute RUN_DIRECTION
      Attribute key for the run direction of the line. Values are instances of Boolean. The default value is null, which indicates that the standard Bidi algorithm for determining run direction should be used with the value Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT.

      The constants RUN_DIRECTION_RTL and RUN_DIRECTION_LTR are provided.

      This determines the value passed to the Bidi constructor to select the primary direction of the text in the paragraph.

      Note: This attribute should have the same value for all the text in a paragraph, otherwise the behavior is undetermined.

      See Also:
    • RUN_DIRECTION_LTR

      public static final TextAttribute RUN_DIRECTION_LTR
      Left-to-right run direction.
      See Also:
    • RUN_DIRECTION_RTL

      public static final TextAttribute RUN_DIRECTION_RTL
      Right-to-left run direction.
      See Also:
    • FONT

      public static final TextAttribute FONT
      Specifies a font for a text interval. The value should be an instance of Font.
    • STRIKETHROUGH

      public static final TextAttribute STRIKETHROUGH
      Strike through
    • UNDERLINE

      public static final TextAttribute UNDERLINE
      Underline. The value should be an instance of Boolean.
  • Method Details

    • values

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