## Uses of Interface
javax.swing.text.AttributeSet

- Packages that use AttributeSet
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
  javax.accessibility | Defines a contract between user-interface components and an assistive technology that provides access to those components.
  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 AttributeSet in java.awt

    Methods in java.awt that return AttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `AttributeSet` | TextComponent.AccessibleAWTTextComponent.`getCharacterAttribute(int i)` Returns the AttributeSet for a given character (at a given index).

  - ### Uses of AttributeSet in javax.accessibility

    Fields in javax.accessibility declared as AttributeSet
    Modifier and Type | Field and Description
    --- | ---
    `AttributeSet` | AccessibleAttributeSequence.`attributes` The text attributes

    Methods in javax.accessibility that return AttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `AttributeSet` | AccessibleText.`getCharacterAttribute(int i)` Returns the AttributeSet for a given character at a given index

    Methods in javax.accessibility with parameters of type AttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `void` | AccessibleEditableText.`setAttributes(int startIndex, int endIndex, AttributeSet as)` Sets attributes for the text between two indices.

    Constructors in javax.accessibility with parameters of type AttributeSet
    Constructor and Description
    `AccessibleAttributeSequence(int start, int end, AttributeSet attr)` Constructs an `AccessibleAttributeSequence` with the given parameters.

  - ### Uses of AttributeSet in javax.swing

    Methods in javax.swing that return AttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `AttributeSet` | JSpinner.AccessibleJSpinner.`getCharacterAttribute(int i)` Returns the AttributeSet for a given character at a given index
    `AttributeSet` | ProgressMonitor.AccessibleProgressMonitor.`getCharacterAttribute(int i)` Returns the AttributeSet for a given character at a given index
    `AttributeSet` | AbstractButton.AccessibleAbstractButton.`getCharacterAttribute(int i)` Return the AttributeSet for a given character at a given index
    `AttributeSet` | JLabel.AccessibleJLabel.`getCharacterAttribute(int i)` Return the AttributeSet for a given character at a given index
    `AttributeSet` | JTextPane.`getCharacterAttributes()` Fetches the character attributes in effect at the current location of the caret, or `null`.
    `AttributeSet` | JTextPane.`getParagraphAttributes()` Fetches the current paragraph attributes in effect at the location of the caret, or `null` if none.

    Methods in javax.swing with parameters of type AttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `void` | JSpinner.AccessibleJSpinner.`setAttributes(int startIndex, int endIndex, AttributeSet as)` Sets attributes for the text between two indices.
    `void` | JTextPane.`setCharacterAttributes(AttributeSet attr, boolean replace)` Applies the given attributes to character content.
    `void` | JTextPane.`setParagraphAttributes(AttributeSet attr, boolean replace)` Applies the given attributes to paragraphs.

  - ### Uses of AttributeSet in javax.swing.text

    Subinterfaces of AttributeSet in javax.swing.text
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `MutableAttributeSet` A generic interface for a mutable collection of unique attributes.
    `interface` | `Style` A collection of attributes to associate with an element in a document.

    Classes in javax.swing.text that implement AttributeSet
    Modifier and Type | Class and 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...
    `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.
    `class` | `StyleContext.SmallAttributeSet` This class holds a small number of attributes in an array.

    Fields in javax.swing.text declared as AttributeSet
    Modifier and Type | Field and Description
    --- | ---
    `protected AttributeSet` | DefaultStyledDocument.AttributeUndoableEdit.`copy`
    `static AttributeSet` | SimpleAttributeSet.`EMPTY` An empty attribute set.
    `protected AttributeSet` | DefaultStyledDocument.AttributeUndoableEdit.`newAttributes`

    Methods in javax.swing.text that return AttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `AttributeSet` | StyleContext.`addAttribute(AttributeSet old, Object name, Object value)` Adds an attribute to the given set, and returns the new representative set.
    `AttributeSet` | AbstractDocument.AttributeContext.`addAttribute(AttributeSet old, Object name, Object value)` Adds an attribute to the given set, and returns the new representative set.
    `AttributeSet` | StyleContext.`addAttributes(AttributeSet old, AttributeSet attr)` Adds a set of attributes to the element.
    `AttributeSet` | AbstractDocument.AttributeContext.`addAttributes(AttributeSet old, AttributeSet attr)` Adds a set of attributes to the element.
    `AttributeSet` | StyleContext.SmallAttributeSet.`copyAttributes()` Copies a set of attributes.
    `AttributeSet` | StyleContext.NamedStyle.`copyAttributes()` Copies a set of attributes.
    `AttributeSet` | SimpleAttributeSet.`copyAttributes()` Makes a copy of the attributes.
    `AttributeSet` | AttributeSet.`copyAttributes()` Returns an attribute set that is guaranteed not to change over time.
    `AttributeSet` | AbstractDocument.AbstractElement.`copyAttributes()` Copies a set of attributes.
    `AttributeSet` | DefaultStyledDocument.ElementSpec.`getAttributes()` Gets the element attributes.
    `AttributeSet` | AbstractDocument.AbstractElement.`getAttributes()` Gets the attributes for the element.
    `AttributeSet` | Element.`getAttributes()` Fetches the collection of attributes this element contains.
    `AttributeSet` | View.`getAttributes()` Fetches the attributes to use when rendering.
    `AttributeSet` | JTextComponent.AccessibleJTextComponent.`getCharacterAttribute(int i)` Returns the AttributeSet for a given character (at a given index).
    `AttributeSet` | StyleContext.`getEmptySet()` Fetches an empty AttributeSet.
    `AttributeSet` | AbstractDocument.AttributeContext.`getEmptySet()` Fetches an empty AttributeSet.
    `AttributeSet` | StyleContext.SmallAttributeSet.`getResolveParent()` If not overriden, the resolving parent defaults to the parent element.
    `AttributeSet` | StyleContext.NamedStyle.`getResolveParent()` Gets attributes from the parent.
    `AttributeSet` | SimpleAttributeSet.`getResolveParent()` Gets the resolving parent.
    `AttributeSet` | AttributeSet.`getResolveParent()` Gets the resolving parent.
    `AttributeSet` | AbstractDocument.AbstractElement.`getResolveParent()` Gets the resolving parent.
    `AttributeSet` | StyleContext.`removeAttribute(AttributeSet old, Object name)` Removes an attribute from the set.
    `AttributeSet` | AbstractDocument.AttributeContext.`removeAttribute(AttributeSet old, Object name)` Removes an attribute from the set.
    `AttributeSet` | StyleContext.`removeAttributes(AttributeSet old, AttributeSet attrs)` Removes a set of attributes for the element.
    `AttributeSet` | AbstractDocument.AttributeContext.`removeAttributes(AttributeSet old, AttributeSet attrs)` Removes a set of attributes for the element.
    `AttributeSet` | StyleContext.`removeAttributes(AttributeSet old, Enumeration<?> names)` Removes a set of attributes for the element.
    `AttributeSet` | AbstractDocument.AttributeContext.`removeAttributes(AttributeSet old, Enumeration<?> names)` Removes a set of attributes for the element.

    Methods in javax.swing.text with parameters of type AttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `AttributeSet` | StyleContext.`addAttribute(AttributeSet old, Object name, Object value)` Adds an attribute to the given set, and returns the new representative set.
    `AttributeSet` | AbstractDocument.AttributeContext.`addAttribute(AttributeSet old, Object name, Object value)` Adds an attribute to the given set, and returns the new representative set.
    `void` | StyleContext.NamedStyle.`addAttributes(AttributeSet attr)` Adds a set of attributes to the element.
    `void` | SimpleAttributeSet.`addAttributes(AttributeSet attributes)` Adds a set of attributes to the list.
    `void` | AbstractDocument.AbstractElement.`addAttributes(AttributeSet attr)` Adds a set of attributes to the element.
    `void` | MutableAttributeSet.`addAttributes(AttributeSet attributes)` Creates a new attribute set similar to this one except that it contains the given attributes and values.
    `AttributeSet` | StyleContext.`addAttributes(AttributeSet old, AttributeSet attr)` Adds a set of attributes to the element.
    `AttributeSet` | AbstractDocument.AttributeContext.`addAttributes(AttributeSet old, AttributeSet attr)` Adds a set of attributes to the element.
    `boolean` | StyleContext.SmallAttributeSet.`containsAttributes(AttributeSet attrs)` Checks whether the attribute set contains all of the given attributes.
    `boolean` | StyleContext.NamedStyle.`containsAttributes(AttributeSet attrs)` Checks whether the element contains all the attributes.
    `boolean` | SimpleAttributeSet.`containsAttributes(AttributeSet attributes)` Checks whether the attribute list contains all the specified name/value pairs.
    `boolean` | AttributeSet.`containsAttributes(AttributeSet attributes)` Returns `true` if this set defines all the attributes from the given set with equal values.
    `boolean` | AbstractDocument.AbstractElement.`containsAttributes(AttributeSet attrs)` Checks whether the element contains all the attributes.
    `protected Element` | AbstractDocument.`createBranchElement(Element parent, AttributeSet a)` Creates a document branch element, that can contain other elements.
    `protected MutableAttributeSet` | StyleContext.`createLargeAttributeSet(AttributeSet a)` Create a large set of attributes that should trade off space for time.
    `protected Element` | AbstractDocument.`createLeafElement(Element parent, AttributeSet a, int p0, int p1)` Creates a document leaf element.
    `protected StyleContext.SmallAttributeSet` | StyleContext.`createSmallAttributeSet(AttributeSet a)` Create a compact set of attributes that might be shared.
    `static int` | StyleConstants.`getAlignment(AttributeSet a)` Gets the alignment setting.
    `Color` | DefaultStyledDocument.`getBackground(AttributeSet attr)` Gets the background color from an attribute set.
    `Color` | StyleContext.`getBackground(AttributeSet attr)` Takes a set of attributes and turn it into a background color specification.
    `static Color` | StyleConstants.`getBackground(AttributeSet a)` Gets the background color setting from the attribute list.
    `Color` | StyledDocument.`getBackground(AttributeSet attr)` Takes a set of attributes and turn it into a background color specification.
    `static int` | StyleConstants.`getBidiLevel(AttributeSet a)` Gets the BidiLevel setting.
    `static Component` | StyleConstants.`getComponent(AttributeSet a)` Gets the component setting from the attribute list.
    `static float` | StyleConstants.`getFirstLineIndent(AttributeSet a)` Gets the first line indent setting.
    `Font` | DefaultStyledDocument.`getFont(AttributeSet attr)` Gets the font from an attribute set.
    `Font` | StyleContext.`getFont(AttributeSet attr)` Gets the font from an attribute set.
    `Font` | StyledDocument.`getFont(AttributeSet attr)` Takes a set of attributes and turn it into a font specification.
    `static String` | StyleConstants.`getFontFamily(AttributeSet a)` Gets the font family setting from the attribute list.
    `static int` | StyleConstants.`getFontSize(AttributeSet a)` Gets the font size setting from the attribute list.
    `Color` | DefaultStyledDocument.`getForeground(AttributeSet attr)` Gets the foreground color from an attribute set.
    `Color` | StyleContext.`getForeground(AttributeSet attr)` Takes a set of attributes and turn it into a foreground color specification.
    `static Color` | StyleConstants.`getForeground(AttributeSet a)` Gets the foreground color setting from the attribute list.
    `Color` | StyledDocument.`getForeground(AttributeSet attr)` Takes a set of attributes and turn it into a foreground color specification.
    `static Icon` | StyleConstants.`getIcon(AttributeSet a)` Gets the icon setting from the attribute list.
    `static float` | StyleConstants.`getLeftIndent(AttributeSet a)` Gets the left indent setting.
    `static float` | StyleConstants.`getLineSpacing(AttributeSet a)` Gets the line spacing setting.
    `static float` | StyleConstants.`getRightIndent(AttributeSet a)` Gets the right indent setting.
    `static float` | StyleConstants.`getSpaceAbove(AttributeSet a)` Gets the space above setting.
    `static float` | StyleConstants.`getSpaceBelow(AttributeSet a)` Gets the space below setting.
    `static TabSet` | StyleConstants.`getTabSet(AttributeSet a)` Gets the TabSet.
    `void` | DocumentFilter.`insertString(DocumentFilter.FilterBypass fb, int offset, String string, AttributeSet attr)` Invoked prior to insertion of text into the specified Document.
    `void` | PlainDocument.`insertString(int offs, String str, AttributeSet a)` Inserts some content into the document.
    `void` | AbstractDocument.`insertString(int offs, String str, AttributeSet a)` Inserts some content into the document.
    `abstract void` | DocumentFilter.FilterBypass.`insertString(int offset, String string, AttributeSet attr)` Inserts the specified text, bypassing the DocumentFilter.
    `void` | Document.`insertString(int offset, String str, AttributeSet a)` Inserts a string of content.
    `protected void` | DefaultStyledDocument.`insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)` Updates document structure as a result of text insertion.
    `protected void` | PlainDocument.`insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)` Updates document structure as a result of text insertion.
    `protected void` | AbstractDocument.`insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)` Updates document structure as a result of text insertion.
    `static boolean` | StyleConstants.`isBold(AttributeSet a)` Checks whether the bold attribute is set.
    `boolean` | StyleContext.SmallAttributeSet.`isEqual(AttributeSet attr)` Checks whether two attribute sets are equal.
    `boolean` | StyleContext.NamedStyle.`isEqual(AttributeSet attr)` Checks whether two attribute sets are equal.
    `boolean` | SimpleAttributeSet.`isEqual(AttributeSet attr)` Compares two attribute sets.
    `boolean` | AttributeSet.`isEqual(AttributeSet attr)` Determines if the two attribute sets are equivalent.
    `boolean` | AbstractDocument.AbstractElement.`isEqual(AttributeSet attr)` Checks whether two attribute sets are equal.
    `static boolean` | StyleConstants.`isItalic(AttributeSet a)` Checks whether the italic attribute is set.
    `static boolean` | StyleConstants.`isStrikeThrough(AttributeSet a)` Checks whether the strikethrough attribute is set.
    `static boolean` | StyleConstants.`isSubscript(AttributeSet a)` Checks whether the subscript attribute is set.
    `static boolean` | StyleConstants.`isSuperscript(AttributeSet a)` Checks whether the superscript attribute is set.
    `static boolean` | StyleConstants.`isUnderline(AttributeSet a)` Checks whether the underline attribute is set.
    `void` | StyleContext.`reclaim(AttributeSet a)` Returns a set no longer needed by the MutableAttributeSet implmentation.
    `void` | AbstractDocument.AttributeContext.`reclaim(AttributeSet a)` Reclaims an attribute set.
    `AttributeSet` | StyleContext.`removeAttribute(AttributeSet old, Object name)` Removes an attribute from the set.
    `AttributeSet` | AbstractDocument.AttributeContext.`removeAttribute(AttributeSet old, Object name)` Removes an attribute from the set.
    `void` | StyleContext.NamedStyle.`removeAttributes(AttributeSet attrs)` Removes a set of attributes for the element.
    `void` | SimpleAttributeSet.`removeAttributes(AttributeSet attributes)` Removes a set of attributes from the list.
    `void` | AbstractDocument.AbstractElement.`removeAttributes(AttributeSet attrs)` Removes a set of attributes for the element.
    `void` | MutableAttributeSet.`removeAttributes(AttributeSet attributes)` Removes a set of attributes with the given `name`.
    `AttributeSet` | StyleContext.`removeAttributes(AttributeSet old, AttributeSet attrs)` Removes a set of attributes for the element.
    `AttributeSet` | AbstractDocument.AttributeContext.`removeAttributes(AttributeSet old, AttributeSet attrs)` Removes a set of attributes for the element.
    `AttributeSet` | StyleContext.`removeAttributes(AttributeSet old, Enumeration<?> names)` Removes a set of attributes for the element.
    `AttributeSet` | AbstractDocument.AttributeContext.`removeAttributes(AttributeSet old, Enumeration<?> names)` Removes a set of attributes for the element.
    `void` | DocumentFilter.`replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs)` Invoked prior to replacing a region of text in the specified Document.
    `void` | AbstractDocument.`replace(int offset, int length, String text, AttributeSet attrs)` Deletes the region of text from `offset` to `offset + length`, and replaces it with `text`.
    `abstract void` | DocumentFilter.FilterBypass.`replace(int offset, int length, String string, AttributeSet attrs)` Deletes the region of text from `offset` to `offset + length`, and replaces it with `text`.
    `void` | JTextComponent.AccessibleJTextComponent.`setAttributes(int startIndex, int endIndex, AttributeSet as)` Sets attributes for the text between two indices.
    `void` | DefaultStyledDocument.`setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace)` Sets attributes for some part of the document.
    `void` | StyledDocument.`setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace)` Changes the content element attributes used for the given range of existing content in the document.
    `protected void` | StyledEditorKit.StyledTextAction.`setCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace)` Applies the given attributes to character content.
    `void` | DefaultStyledDocument.`setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)` Sets attributes for a paragraph.
    `void` | StyledDocument.`setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)` Sets paragraph attributes.
    `protected void` | StyledEditorKit.StyledTextAction.`setParagraphAttributes(JEditorPane editor, AttributeSet attr, boolean replace)` Applies the given attributes to paragraphs.
    `protected void` | CompositeView.`setParagraphInsets(AttributeSet attr)` Sets the insets from the paragraph attributes specified in the given attributes.
    `void` | StyleContext.NamedStyle.`setResolveParent(AttributeSet parent)` Sets the resolving parent.
    `void` | SimpleAttributeSet.`setResolveParent(AttributeSet parent)` Sets the resolving parent.
    `void` | AbstractDocument.AbstractElement.`setResolveParent(AttributeSet parent)` Sets the resolving parent.
    `void` | MutableAttributeSet.`setResolveParent(AttributeSet parent)` Sets the resolving parent.
    `protected void` | AbstractWriter.`writeAttributes(AttributeSet attr)` Writes out the set of attributes as " =" pairs.
    `void` | StyleContext.`writeAttributes(ObjectOutputStream out, AttributeSet a)` Context-specific handling of writing out attributes
    `static void` | StyleContext.`writeAttributeSet(ObjectOutputStream out, AttributeSet a)` Writes a set of attributes to the given object stream for the purpose of serialization.

    Constructors in javax.swing.text with parameters of type AttributeSet
    Constructor and Description
    `AbstractDocument.AbstractElement(Element parent, AttributeSet a)` Creates a new AbstractElement.
    `AbstractDocument.BranchElement(Element parent, AttributeSet a)` Constructs a composite element that initially contains no children.
    `AbstractDocument.LeafElement(Element parent, AttributeSet a, int offs0, int offs1)` Constructs an element that represents content within the document (has no children).
    `DefaultStyledDocument.AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)`
    `DefaultStyledDocument.ElementSpec(AttributeSet a, short type)` Constructor useful for markup when the markup will not be stored in the document.
    `DefaultStyledDocument.ElementSpec(AttributeSet a, short type, char[] txt, int offs, int len)` Constructor for creating a spec externally for batch input of content and markup into the document.
    `DefaultStyledDocument.ElementSpec(AttributeSet a, short type, int len)` Constructor for parsing inside the document when the data has already been added, but len information is needed.
    `SimpleAttributeSet(AttributeSet source)` Creates a new attribute set based on a supplied set of attributes.
    `StyleContext.SmallAttributeSet(AttributeSet attrs)`

  - ### Uses of AttributeSet in javax.swing.text.html

    Classes in javax.swing.text.html that implement AttributeSet
    Modifier and Type | Class and 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.

    Methods in javax.swing.text.html that return AttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `AttributeSet` | StyleSheet.`addAttribute(AttributeSet old, Object key, Object value)` Adds an attribute to the given set, and returns the new representative set.
    `AttributeSet` | StyleSheet.`addAttributes(AttributeSet old, AttributeSet attr)` Adds a set of attributes to the element.
    `AttributeSet` | ParagraphView.`getAttributes()` Fetches the attributes to use when rendering.
    `AttributeSet` | Option.`getAttributes()` Fetch the attributes associated with this option.
    `AttributeSet` | BlockView.`getAttributes()` Fetches the attributes to use when rendering.
    `AttributeSet` | ImageView.`getAttributes()` Fetches the attributes to use when rendering.
    `AttributeSet` | InlineView.`getAttributes()` Fetches the attributes to use when rendering.
    `abstract AttributeSet` | HTMLDocument.Iterator.`getAttributes()` Return the attributes for this tag.
    `AttributeSet` | StyleSheet.`getDeclaration(String decl)` Translates a CSS declaration to an AttributeSet that represents the CSS declaration.
    `AttributeSet` | HTMLDocument.RunElement.`getResolveParent()` Gets the resolving parent.
    `AttributeSet` | HTMLDocument.BlockElement.`getResolveParent()` Gets the resolving parent.
    `AttributeSet` | StyleSheet.`getViewAttributes(View v)` Fetches a set of attributes to use in the view for displaying.
    `AttributeSet` | StyleSheet.`removeAttribute(AttributeSet old, Object key)` Removes an attribute from the set.
    `AttributeSet` | StyleSheet.`removeAttributes(AttributeSet old, AttributeSet attrs)` Removes a set of attributes.
    `AttributeSet` | StyleSheet.`removeAttributes(AttributeSet old, Enumeration<?> names)` Removes a set of attributes for the element.
    `AttributeSet` | StyleSheet.`translateHTMLToCSS(AttributeSet htmlAttrSet)` Converts a set of HTML attributes to an equivalent set of CSS attributes.

    Methods in javax.swing.text.html with parameters of type AttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `AttributeSet` | StyleSheet.`addAttribute(AttributeSet old, Object key, Object value)` Adds an attribute to the given set, and returns the new representative set.
    `AttributeSet` | StyleSheet.`addAttributes(AttributeSet old, AttributeSet attr)` Adds a set of attributes to the element.
    `protected void` | HTMLWriter.`closeOutUnwantedEmbeddedTags(AttributeSet attr)` Searches the attribute set and for each tag that is stored in the tag vector.
    `protected Element` | HTMLDocument.`createBranchElement(Element parent, AttributeSet a)` Creates a document branch element, that can contain other elements.
    `protected MutableAttributeSet` | StyleSheet.`createLargeAttributeSet(AttributeSet a)` Creates a large set of attributes that should trade off space for time.
    `protected Element` | HTMLDocument.`createLeafElement(Element parent, AttributeSet a, int p0, int p1)` Creates a document leaf element that directly represents text (doesn't have any children).
    `protected StyleContext.SmallAttributeSet` | StyleSheet.`createSmallAttributeSet(AttributeSet a)` Creates a compact set of attributes that might be shared.
    `Color` | StyleSheet.`getBackground(AttributeSet a)` Takes a set of attributes and turn it into a background color specification.
    `StyleSheet.BoxPainter` | StyleSheet.`getBoxPainter(AttributeSet a)` Fetches the box formatter to use for the given set of CSS attributes.
    `Font` | StyleSheet.`getFont(AttributeSet a)` Fetches the font to use for the given set of attributes.
    `Color` | StyleSheet.`getForeground(AttributeSet a)` Takes a set of attributes and turn it into a foreground color specification.
    `static int` | HTML.`getIntegerAttributeValue(AttributeSet attr, HTML.Attribute key, int def)` Fetches an integer attribute value.
    `StyleSheet.ListPainter` | StyleSheet.`getListPainter(AttributeSet a)` Fetches the list formatter to use for the given set of CSS attributes.
    `protected void` | HTMLDocument.`insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)` Updates document structure as a result of text insertion.
    `protected boolean` | HTMLWriter.`isBlockTag(AttributeSet attr)` Determines if the HTML.Tag associated with the element is a block tag.
    `protected boolean` | HTMLWriter.`matchNameAttribute(AttributeSet attr, HTML.Tag tag)` Returns true if the StyleConstants.NameAttribute is equal to the tag that is passed in as a parameter.
    `AttributeSet` | StyleSheet.`removeAttribute(AttributeSet old, Object key)` Removes an attribute from the set.
    `AttributeSet` | StyleSheet.`removeAttributes(AttributeSet old, AttributeSet attrs)` Removes a set of attributes.
    `AttributeSet` | StyleSheet.`removeAttributes(AttributeSet old, Enumeration<?> names)` Removes a set of attributes for the element.
    `protected void` | HTMLWriter.`selectContent(AttributeSet attr)` Writes out the content of the SELECT form element.
    `void` | HTMLDocument.`setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)` Sets attributes for a paragraph.
    `protected void` | HTMLWriter.`textAreaContent(AttributeSet attr)` Writes out text that is contained in a TEXTAREA form element.
    `AttributeSet` | StyleSheet.`translateHTMLToCSS(AttributeSet htmlAttrSet)` Converts a set of HTML attributes to an equivalent set of CSS attributes.
    `protected void` | HTMLWriter.`writeAttributes(AttributeSet attr)` Writes out the attribute set.
    `protected void` | MinimalHTMLWriter.`writeAttributes(AttributeSet attr)` Writes out all the attributes for the following types: StyleConstants.ParagraphConstants, StyleConstants.CharacterConstants, StyleConstants.FontConstants, StyleConstants.ColorConstants.
    `protected void` | HTMLWriter.`writeEmbeddedTags(AttributeSet attr)` Searches for embedded tags in the AttributeSet and writes them out.
    `protected void` | MinimalHTMLWriter.`writeHTMLTags(AttributeSet attr)` Generates bold <b>, italic <i>, and <u> tags for the text based on its attribute settings.
    `protected void` | MinimalHTMLWriter.`writeNonHTMLAttributes(AttributeSet attr)` Writes out the remaining character-level attributes (attributes other than bold, italic, and underline) in an HTML-compliant way.

    Constructors in javax.swing.text.html with parameters of type AttributeSet
    Constructor and Description
    `HTMLDocument.BlockElement(Element parent, AttributeSet a)` Constructs a composite element that initially contains no children.
    `HTMLDocument.RunElement(Element parent, AttributeSet a, int offs0, int offs1)` Constructs an element that represents content within the document (has no children).
    `Option(AttributeSet attr)` Creates a new Option object.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.