Module java.desktop

Class StyleConstants

java.lang.Object
javax.swing.text.StyleConstants
Direct Known Subclasses:
StyleConstants.CharacterConstants, StyleConstants.ColorConstants, StyleConstants.FontConstants, StyleConstants.ParagraphConstants

public class StyleConstants extends Object

A collection of well known or common attribute keys and methods to apply to an AttributeSet or MutableAttributeSet to get/set the properties in a typesafe manner.

The paragraph attributes form the definition of a paragraph to be rendered. All sizes are specified in points (such as found in postscript), a device independent measure.

Diagram shows SpaceAbove, FirstLineIndent, LeftIndent, RightIndent,
      and SpaceBelow a paragraph.

  • Field Details

    • ComponentElementName

      public static final String ComponentElementName
      Name of elements used to represent components.
      See Also:
    • IconElementName

      public static final String IconElementName
      Name of elements used to represent icons.
      See Also:
    • NameAttribute

      public static final Object NameAttribute
      Attribute name used to name the collection of attributes.
    • ResolveAttribute

      public static final Object ResolveAttribute
      Attribute name used to identify the resolving parent set of attributes, if one is defined.
    • ModelAttribute

      public static final Object ModelAttribute
      Attribute used to identify the model for embedded objects that have a model view separation.
    • BidiLevel

      public static final Object BidiLevel
      Bidirectional level of a character as assigned by the Unicode bidi algorithm.
    • FontFamily

      public static final Object FontFamily
      Name of the font family.
    • Family

      public static final Object Family
      Name of the font family.
      Since:
      1.5
    • FontSize

      public static final Object FontSize
      Name of the font size.
    • Size

      public static final Object Size
      Name of the font size.
      Since:
      1.5
    • Bold

      public static final Object Bold
      Name of the bold attribute.
    • Italic

      public static final Object Italic
      Name of the italic attribute.
    • Underline

      public static final Object Underline
      Name of the underline attribute.
    • StrikeThrough

      public static final Object StrikeThrough
      Name of the Strikethrough attribute.
    • Superscript

      public static final Object Superscript
      Name of the Superscript attribute.
    • Subscript

      public static final