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.

| Modifier and Type | Class and Description |
|---|---|
| public static class | StyleConstants.
This is a typesafe enumeration of the well-known attributes that contribute to a character style. |
| public static class | StyleConstants.
This is a typesafe enumeration of the well-known attributes that contribute to a color. |
| public static class | StyleConstants.
This is a typesafe enumeration of the well-known attributes that contribute to a font. |
| public static class | StyleConstants.
This is a typesafe enumeration of the well-known attributes that contribute to a paragraph style. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGN_CENTER
A possible value for paragraph alignment. |
| public static final int | ALIGN_JUSTIFIED
A possible value for paragraph alignment. |
| public static final int | ALIGN_LEFT
A possible value for paragraph alignment. |
| public static final int | ALIGN_RIGHT
A possible value for paragraph alignment. |
| public static final Object | Alignment
Alignment for the paragraph. |
| public static final Object | Background
Name of the background color attribute. |
| public static final Object | BidiLevel
Bidirectional level of a character as assigned by the Unicode bidi algorithm. |
| public static final Object | Bold
Name of the bold attribute. |
| public static final Object | ComponentAttribute
Name of the component attribute. |
| public static final String | ComponentElementName
Name of elements used to represent components. |
| public static final Object | ComposedTextAttribute
Name of the input method composed text attribute. |
| public static final Object | Family
Name of the font family. |
| public static final Object | FirstLineIndent
The amount of space to indent the first line of the paragraph. |
| public static final Object | FontFamily
Name of the font family. |
| public static final Object | FontSize
Name of the font size. |
| public static final Object | Foreground
Name of the foreground color attribute. |
| public static final Object | IconAttribute
Name of the icon attribute. |
| public static final String | IconElementName
Name of elements used to represent icons. |
| public static final Object | Italic
Name of the italic attribute. |
| pack-priv static Object[] | |
| public static final Object | LeftIndent
The amount to indent the left side of the paragraph. |
| public static final Object | LineSpacing
The amount of space between lines of the paragraph. |
| public static final Object | ModelAttribute
Attribute used to identify the model for embedded objects that have a model view separation. |
| public static final Object | NameAttribute
Attribute name used to name the collection of attributes. |
| public static final Object | Orientation
Orientation for a paragraph. |
| private String | |
| public static final Object | ResolveAttribute
Attribute name used to identify the resolving parent set of attributes, if one is defined. |
| public static final Object | RightIndent
The amount to indent the right side of the paragraph. |
| public static final Object | Size
Name of the font size. |
| public static final Object | SpaceAbove
The amount of space above the paragraph. |
| public static final Object | SpaceBelow
The amount of space below the paragraph. |
| public static final Object | StrikeThrough
Name of the Strikethrough attribute. |
| public static final Object | Subscript
Name of the Subscript attribute. |
| public static final Object | Superscript
Name of the Superscript attribute. |
| public static final Object | TabSet
TabSet for the paragraph, type is a TabSet containing TabStops. |
| public static final Object | Underline
Name of the underline attribute. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the valueStyleConstants.ALIGN_LEFT if not setthe attribute set a)Gets the alignment setting. |
| public static Color | Returns: the color, Color.black as the defaultthe attribute set a)Gets the background color setting from the attribute list. |
| public static int | |
| public static Component | Returns: the component, null if nonethe attribute set a)Gets the component setting from the attribute list. |
| public static float | Returns: the value, 0 if not setthe attribute set a)Gets the first line indent setting. |
| public static String | Returns: the font family, "Monospaced" as the defaultthe attribute set a)Gets the font family setting from the attribute list. |
| public static int | Returns: the font size, 12 as the defaultthe attribute set a)Gets the font size setting from the attribute list. |
| public static Color | Returns: the color, Color.black as the defaultthe attribute set a)Gets the foreground color setting from the attribute list. |
| public static Icon | Returns: the icon, null if nonethe attribute set a)Gets the icon setting from the attribute list. |
| public static float | Returns: the value, 0 if not setthe attribute set a)Gets the left indent setting. |
| public static float | Returns: the value, 0 if not setthe attribute set a)Gets the line spacing setting. |
| public static float | Returns: the value, 0 if not setthe attribute set a)Gets the right indent setting. |
| public static float | Returns: the value, 0 if not setthe attribute set a)Gets the space above setting. |
| public static float | Returns: the value, 0 if not setthe attribute set a)Gets the space below setting. |
| public static TabSet | |
| public static boolean | Returns: true if set else falsethe attribute set a)Checks whether the bold attribute is set. |
| public static boolean | Returns: true if set else falsethe attribute set a)Checks whether the italic attribute is set. |
| public static boolean | Returns: true if set else falsethe attribute set a)Checks whether the strikethrough attribute is set. |
| public static boolean | Returns: true if set else falsethe attribute set a)Checks whether the subscript attribute is set. |
| public static boolean | Returns: true if set else falsethe attribute set a)Checks whether the superscript attribute is set. |
| public static boolean | Returns: true if set else falsethe attribute set a)Checks whether the underline attribute is set. |
| public static void | |
| public static void | |
| public static void | |
| public static void | setBold(MutableAttributeSet
the attribute set a, boolean specifies true/false for setting the attribute b)Sets the bold attribute. |
| public static void | setComponent(MutableAttributeSet
the attribute set a, Component the component c)Sets the component attribute. |
| public static void | setFirstLineIndent(MutableAttributeSet
the attribute set a, float the value i)Sets the first line indent. |
| public static void | |
| public static void | setFontSize(MutableAttributeSet
the attribute set a, int the font size s)Sets the font size attribute. |
| public static void | |
| public static void | |
| public static void | setItalic(MutableAttributeSet
the attribute set a, boolean specifies true/false for setting the attribute b)Sets the italic attribute. |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | setStrikeThrough(MutableAttributeSet
the attribute set a, boolean specifies true/false for setting the attribute b)Sets the strikethrough attribute. |
| public static void | setSubscript(MutableAttributeSet
the attribute set a, boolean specifies true/false for setting the attribute b)Sets the subscript attribute. |
| public static void | setSuperscript(MutableAttributeSet
the attribute set a, boolean specifies true/false for setting the attribute b)Sets the superscript attribute. |
| public static void | |
| public static void | setUnderline(MutableAttributeSet
the attribute set a, boolean specifies true/false for setting the attribute b)Sets the underline attribute. |
| public String | Returns: the stringOverrides java. Returns the string representation. |