Java javax.swing.text StyleConstants fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.text StyleConstants fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.text StyleConstants.

The text is from its open source code.

Field

StringComponentElementName
Name of elements used to represent components.
StringIconElementName
Name of elements used to represent icons.
ObjectNameAttribute
Attribute name used to name the collection of attributes.
ObjectResolveAttribute
Attribute name used to identify the resolving parent set of attributes, if one is defined.
ObjectFontFamily
Name of the font family.
ObjectFamily
Name of the font family.
ObjectFontSize
Name of the font size.
ObjectSize
Name of the font size.
ObjectBold
Name of the bold attribute.
ObjectItalic
Name of the italic attribute.
ObjectUnderline
Name of the underline attribute.
ObjectStrikeThrough
Name of the Strikethrough attribute.
ObjectSuperscript
Name of the Superscript attribute.
ObjectSubscript
Name of the Subscript attribute.
ObjectForeground
Name of the foreground color attribute.
ObjectBackground
Name of the background color attribute.
ObjectComponentAttribute
Name of the component attribute.
ObjectLineSpacing
The amount of space between lines of the paragraph.
ObjectAlignment
Alignment for the paragraph.
ObjectTabSet
TabSet for the paragraph, type is a TabSet containing TabStops.
intALIGN_LEFT
A possible value for paragraph alignment.
intALIGN_CENTER
A possible value for paragraph alignment.
intALIGN_RIGHT
A possible value for paragraph alignment.
intALIGN_JUSTIFIED
A possible value for paragraph alignment.

Method

intgetAlignment(AttributeSet a)
Gets the alignment setting.
ColorgetBackground(AttributeSet a)
Gets the background color setting from the attribute list.
StringgetFontFamily(AttributeSet a)
Gets the font family setting from the attribute list.
intgetFontSize(AttributeSet a)
Gets the font size setting from the attribute list.
ColorgetForeground(AttributeSet a)
Gets the foreground color setting from the attribute list.
IcongetIcon(AttributeSet a)
Gets the icon setting from the attribute list.
booleanisBold(AttributeSet a)
Checks whether the bold attribute is set.
booleanisItalic(AttributeSet a)
Checks whether the italic attribute is set.
booleanisStrikeThrough(AttributeSet a)
Checks whether the strikethrough attribute is set.
booleanisSubscript(AttributeSet a)
Checks whether the subscript attribute is set.
booleanisUnderline(AttributeSet a)
Checks whether the underline attribute is set.
voidsetAlignment(MutableAttributeSet a, int align)
Sets alignment.
voidsetBackground(MutableAttributeSet a, Color fg)
Sets the background color.
voidsetBold(MutableAttributeSet a, boolean b)
Sets the bold attribute.
voidsetComponent(MutableAttributeSet a, Component c)
Sets the component attribute.
voidsetFirstLineIndent(MutableAttributeSet a, float i)
Sets the first line indent.
voidsetFontFamily(MutableAttributeSet a, String fam)
Sets the font attribute.
voidsetFontSize(MutableAttributeSet a, int s)
Sets the font size attribute.
voidsetForeground(MutableAttributeSet a, Color fg)
Sets the foreground color.
voidsetIcon(MutableAttributeSet a, Icon c)
Sets the icon attribute.
voidsetItalic(MutableAttributeSet a, boolean b)
Sets the italic attribute.
voidsetLeftIndent(MutableAttributeSet a, float i)
Sets left indent.
voidsetLineSpacing(MutableAttributeSet a, float i)
Sets line spacing.
voidsetRightIndent(MutableAttributeSet a, float i)
Sets right indent.
voidsetSpaceAbove(MutableAttributeSet a, float i)
Sets space above.
voidsetSpaceBelow(MutableAttributeSet a, float i)
Sets space below.
voidsetStrikeThrough(MutableAttributeSet a, boolean b)
Sets the strikethrough attribute.
voidsetTabSet(MutableAttributeSet a, TabSet tabs)
Sets the TabSet.
voidsetUnderline(MutableAttributeSet a, boolean b)
Sets the underline attribute.