# Uses of Interface
javax.swing.text.MutableAttributeSet

Packages that use MutableAttributeSet
Package
Description
javax.swing
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
javax.swing.text
Provides classes and interfaces that deal with editable and noneditable text components.
javax.swing.text.html
Provides the class `HTMLEditorKit` and supporting classes for creating HTML text editors.

## Uses of MutableAttributeSet in javax.swing

Methods in javax.swing that return MutableAttributeSet
Modifier and Type
Method
Description
`MutableAttributeSet`
JTextPane.`getInputAttributes()`
Gets the input attributes for the pane.

## Uses of MutableAttributeSet in javax.swing.text

Subinterfaces of MutableAttributeSet in javax.swing.text
Modifier and Type
Interface
Description
`interface`
`Style`
A collection of attributes to associate with an element in a document.
Classes in javax.swing.text that implement MutableAttributeSet
Modifier and Type
Class
Description
`class`
`AbstractDocument.AbstractElement`
Implements the abstract part of an element.
`class`
`AbstractDocument.BranchElement`
Implements a composite element that contains other elements.
`class`
`AbstractDocument.LeafElement`
Implements an element that directly represents content of some kind.
`protected class`
`DefaultStyledDocument.SectionElement`
Default root element for a document... maps out the paragraphs/lines contained.
`class`
`SimpleAttributeSet`
A straightforward implementation of MutableAttributeSet using a hash table.
`class`
`StyleContext.NamedStyle`
A collection of attributes, typically used to represent character and paragraph styles.
Methods in javax.swing.text that return MutableAttributeSet
Modifier and Type
Method
Description
`protected MutableAttributeSet`
StyleContext.`createLargeAttributeSet(AttributeSet a)`
Create a large set of attributes that should trade off space for time.
`MutableAttributeSet`
StyledEditorKit.`getInputAttributes()`
Gets the input attributes for the pane.
Methods in javax.swing.text with parameters of type MutableAttributeSet
Modifier and Type
Method
Description
`protected void`
StyledEditorKit.`createInputAttributes(Element element, MutableAttributeSet set)`
Copies the key/values in `element`s AttributeSet into `set`.
`void`
StyleContext.`readAttributes(ObjectInputStream in, MutableAttributeSet a)`
Context-specific handling of reading in attributes
`static void`
StyleContext.`readAttributeSet(ObjectInputStream in, MutableAttributeSet a)`
Reads a set of attributes from the given object input stream that have been previously written out with `writeAttributeSet`.
`static void`
StyleConstants.`setAlignment(MutableAttributeSet a, int align)`
Sets alignment.
`static void`
StyleConstants.`setBackground(MutableAttributeSet a, Color fg)`
Sets the background color.
`static void`
StyleConstants.`setBidiLevel(MutableAttributeSet a, int o)`
Sets the BidiLevel.
`static void`
StyleConstants.`setBold(MutableAttributeSet a, boolean b)`
Sets the bold attribute.
`static void`
StyleConstants.`setComponent(MutableAttributeSet a, Component c)`
Sets the component attribute.
`static void`
StyleConstants.`setFirstLineIndent(MutableAttributeSet a, float i)`
Sets the first line indent.
`static void`
StyleConstants.`setFontFamily(MutableAttributeSet a, String fam)`
Sets the font attribute.
`static void`
StyleConstants.`setFontSize(MutableAttributeSet a, int s)`
Sets the font size attribute.
`static void`
StyleConstants.`setForeground(MutableAttributeSet a, Color fg)`
Sets the foreground color.
`static void`
StyleConstants.`setIcon(MutableAttributeSet a, Icon c)`
Sets the icon attribute.
`static void`
StyleConstants.`setItalic(MutableAttributeSet a, boolean b)`
Sets the italic attribute.
`static void`
StyleConstants.`setLeftIndent(MutableAttributeSet a, float i)`
Sets left indent.
`static void`
StyleConstants.`setLineSpacing(MutableAttributeSet a, float i)`
Sets line spacing.
`static void`
StyleConstants.`setRightIndent(MutableAttributeSet a, float i)`
Sets right indent.
`static void`
StyleConstants.`setSpaceAbove(MutableAttributeSet a, float i)`
Sets space above.
`static void`
StyleConstants.`setSpaceBelow(MutableAttributeSet a, float i)`
Sets space below.
`static void`
StyleConstants.`setStrikeThrough(MutableAttributeSet a, boolean b)`
Sets the strikethrough attribute.
`static void`
StyleConstants.`setSubscript(MutableAttributeSet a, boolean b)`
Sets the subscript attribute.
`static void`
StyleConstants.`setSuperscript(MutableAttributeSet a, boolean b)`
Sets the superscript attribute.
`static void`
StyleConstants.`setTabSet(MutableAttributeSet a, TabSet tabs)`
Sets the TabSet.
`static void`
StyleConstants.`setUnderline(MutableAttributeSet a, boolean b)`
Sets the underline attribute.

## Uses of MutableAttributeSet in javax.swing.text.html

Classes in javax.swing.text.html that implement MutableAttributeSet
Modifier and Type
Class
Description
`class`
`HTMLDocument.BlockElement`
An element that represents a structural block of HTML.
`class`
`HTMLDocument.RunElement`
An element that represents a chunk of text that has a set of HTML character level attributes assigned to it.
Fields in javax.swing.text.html declared as MutableAttributeSet
Modifier and Type
Field
Description
`protected MutableAttributeSet`
HTMLDocument.HTMLReader.`charAttr`
Current character attribute set.
Methods in javax.swing.text.html that return MutableAttributeSet
Modifier and Type
Method
Description
`protected MutableAttributeSet`
StyleSheet.`createLargeAttributeSet(AttributeSet a)`
Creates a large set of attributes that should trade off space for time.
`MutableAttributeSet`
HTMLEditorKit.`getInputAttributes()`
Gets the input attributes used for the styled editing actions.
Methods in javax.swing.text.html with parameters of type MutableAttributeSet
Modifier and Type
Method
Description
`void`
StyleSheet.`addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key, String value)`
Adds a CSS attribute to the given set.
`boolean`
StyleSheet.`addCSSAttributeFromHTML(MutableAttributeSet attr, CSS.Attribute key, String value)`
Adds a CSS attribute to the given set.
`protected void`
HTMLDocument.HTMLReader.`addSpecialElement(HTML.Tag t, MutableAttributeSet a)`
Adds content that is basically specified entirely in the attribute set.
`protected void`
HTMLDocument.HTMLReader.`blockOpen(HTML.Tag t, MutableAttributeSet attr)`
Adds an instruction to the parse buffer to create a block element with the given attributes.
`protected void`
HTMLEditorKit.`createInputAttributes(Element element, MutableAttributeSet set)`
Copies the key/values in `element`s AttributeSet into `set`.
`void`
HTMLDocument.HTMLReader.`handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)`
Callback from the parser.
`void`
HTMLEditorKit.ParserCallback.`handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)`
Callback from the parser.
`void`
HTMLDocument.HTMLReader.`handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)`
Callback from the parser.
`void`
HTMLEditorKit.ParserCallback.`handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)`
Callback from the parser.
`void`
HTMLDocument.HTMLReader.TagAction.`start(HTML.Tag t, MutableAttributeSet a)`
Called when a start tag is seen for the type of tag this action was registered to.