Uses of Interface
javax.swing.text.AttributeSet
Packages that use AttributeSet
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit and supporting classes for creating
HTML text editors.-
Uses of AttributeSet in java.awt
Methods in java.awt that return AttributeSetModifier and TypeMethodDescriptionTextComponent.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 AttributeSetMethods in javax.accessibility that return AttributeSetModifier and TypeMethodDescriptionAccessibleText.getCharacterAttribute(int i) Returns theAttributeSetfor a given character at a given index.Methods in javax.accessibility with parameters of type AttributeSetModifier and TypeMethodDescriptionvoidAccessibleEditableText.setAttributes(int startIndex, int endIndex, AttributeSet as) Sets attributes for the text between two indices.Constructors in javax.accessibility with parameters of type AttributeSetModifierConstructorDescriptionAccessibleAttributeSequence(int start, int end, AttributeSet attr) Constructs anAccessibleAttributeSequencewith the given parameters. -
Uses of AttributeSet in javax.swing
Methods in javax.swing that return AttributeSetModifier and TypeMethodDescriptionAbstractButton.AccessibleAbstractButton.getCharacterAttribute(int i) Return the AttributeSet for a given character at a given indexJLabel.AccessibleJLabel.getCharacterAttribute(int i) Return the AttributeSet for a given character at a given indexJSpinner.AccessibleJSpinner.getCharacterAttribute(int i) Returns the AttributeSet for a given character at a given indexProgressMonitor.AccessibleProgressMonitor.getCharacterAttribute(int i) Returns the AttributeSet for a given character at a given indexJTextPane.getCharacterAttributes()Fetches the character attributes in effect at the current location of the caret, ornull.JTextPane.getParagraphAttributes()Fetches the current paragraph attributes in effect at the location of the caret, ornullif none.Methods in javax.swing with parameters of type AttributeSetModifier and TypeMethodDescriptionvoidJSpinner.AccessibleJSpinner.setAttributes(int startIndex, int endIndex, AttributeSet as) Sets attributes for the text between two indices.voidJTextPane.setCharacterAttributes(AttributeSet attr, boolean replace) Applies the given attributes to character content.voidJTextPane.setParagraphAttributes(AttributeSet attr, boolean replace) Applies the given attributes to paragraphs. -
Uses of AttributeSet in javax.swing.text
Subinterfaces of AttributeSet in javax.swing.textModifier and TypeInterfaceDescriptioninterfaceA generic interface for a mutable collection of unique attributes.interfaceA collection of attributes to associate with an element in a document.Classes in javax.swing.text that implement AttributeSetModifier and TypeClassDescriptionclassImplements the abstract part of an element.classImplements a composite element that contains other elements.classImplements an element that directly represents content of some kind.protected classDefault root element for a document... maps out the paragraphs/lines contained.classA straightforward implementation of MutableAttributeSet using a hash table.classA collection of attributes, typically used to represent character and paragraph styles.classThis class holds a small number of attributes in an array.Fields in javax.swing.text declared as AttributeSetModifier and TypeFieldDescriptionprotected AttributeSetDefaultStyledDocument.AttributeUndoableEdit.copyCopy of the AttributeSet the Element contained.static final AttributeSetSimpleAttributeSet.EMPTYAn empty attribute set.protected AttributeSetDefaultStyledDocument.AttributeUndoableEdit.newAttributesAttributeSet containing additional entries, must be non-mutable!Methods in javax.swing.text that return AttributeSetModifier and TypeMethodDescriptionAbstractDocument.AttributeContext.addAttribute(AttributeSet old, Object name, Object value) Adds an attribute to the given set, and returns the new representative set.StyleContext.addAttribute(AttributeSet old, Object name, Object value) Adds an attribute to the given set, and returns the new representative set.AbstractDocument.AttributeContext.addAttributes(AttributeSet old, AttributeSet attr) Adds a set of attributes to the element.StyleContext.addAttributes(AttributeSet old, AttributeSet attr) Adds a set of attributes to the element.AbstractDocument.AbstractElement.copyAttributes()Copies a set of attributes.AttributeSet.copyAttributes()Returns an attribute set that is guaranteed not to change over time.SimpleAttributeSet.copyAttributes()Makes a copy of the attributes.StyleContext.NamedStyle.copyAttributes()Copies a set of attributes.StyleContext.SmallAttributeSet.copyAttributes()Copies a set of attributes.AbstractDocument.AbstractElement.getAttributes()Gets the attributes for the element.DefaultStyledDocument.ElementSpec.getAttributes()Gets the element attributes.Element.getAttributes()Fetches the collection of attributes this element contains.View.getAttributes()Fetches the attributes to use when rendering.JTextComponent.AccessibleJTextComponent.getCharacterAttribute(int i) Returns the AttributeSet for a given character (at a given index).AbstractDocument.AttributeContext.getEmptySet()Fetches an empty AttributeSet.StyleContext.getEmptySet()Fetches an empty AttributeSet.AbstractDocument.AbstractElement.getResolveParent()Gets the resolving parent.AttributeSet.getResolveParent()Gets the resolving parent.SimpleAttributeSet.getResolveParent()Gets the resolving parent.StyleContext.NamedStyle.getResolveParent()Gets attributes from the parent.StyleContext.SmallAttributeSet.getResolveParent()If not overridden, the resolving parent defaults to the parent element.AbstractDocument.AttributeContext.removeAttribute(AttributeSet old, Object name) Removes an attribute from the set.StyleContext.removeAttribute(AttributeSet old, Object name) Removes an attribute from the set.AbstractDocument.AttributeContext.removeAttributes(AttributeSet old, Enumeration<?> names) Removes a set of attributes for the element.AbstractDocument.AttributeContext.removeAttributes(AttributeSet old, AttributeSet attrs) Removes a set of attributes for the element.StyleContext.removeAttributes(AttributeSet old, Enumeration<?> names) Removes a set of attributes for the element.StyleContext.removeAttributes(AttributeSet old, AttributeSet attrs) Removes a set of attributes for the element.Methods in javax.swing.text with parameters of type AttributeSetModifier and TypeMethodDescriptionAbstractDocument.AttributeContext.addAttribute(AttributeSet old, Object name, Object value) Adds an attribute to the given set, and returns the new representative set.StyleContext.addAttribute(AttributeSet old, Object name, Object value) Adds an attribute to the given set, and returns the new representative set.voidAbstractDocument.AbstractElement.addAttributes(AttributeSet attr) Adds a set of attributes to the element.AbstractDocument.AttributeContext.addAttributes(AttributeSet old, AttributeSet attr) Adds a set of attributes to the element.voidMutableAttributeSet.addAttributes(AttributeSet attributes) Creates a new attribute set similar to this one except that it contains the given attributes and values.voidSimpleAttributeSet.addAttributes(AttributeSet attributes) Adds a set of attributes to the list.StyleContext.addAttributes(AttributeSet old, AttributeSet attr) Adds a set of attributes to the element.voidStyleContext.NamedStyle.addAttributes(AttributeSet attr) Adds a set of attributes to the element.booleanAbstractDocument.AbstractElement.containsAttributes(AttributeSet attrs) Checks whether the element contains all the attributes.booleanAttributeSet.containsAttributes(AttributeSet attributes) Returnstrueif this set defines all the attributes from the given set with equal values.booleanSimpleAttributeSet.containsAttributes(AttributeSet attributes) Checks whether the attribute list contains all the specified name/value pairs.booleanStyleContext.NamedStyle.containsAttributes(AttributeSet attrs) Checks whether the element contains all the attributes.booleanStyleContext.SmallAttributeSet.containsAttributes(AttributeSet attrs) Checks whether the attribute set contains all of the given attributes.protected ElementAbstractDocument.createBranchElement(Element parent, AttributeSet a) Creates a document branch element, that can contain other elements.protected MutableAttributeSetStyleContext.createLargeAttributeSet(AttributeSet a) Create a large set of attributes that should trade off space for time.protected ElementAbstractDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1) Creates a document leaf element.protected StyleContext.SmallAttributeSetStyleContext.createSmallAttributeSet(AttributeSet a) Create a compact set of attributes that might be shared.static intStyleConstants.getAlignment(AttributeSet a) Gets the alignment setting.DefaultStyledDocument.getBackground(AttributeSet attr) Gets the background color from an attribute set.static ColorStyleConstants.getBackground(AttributeSet a) Gets the background color setting from the attribute list.StyleContext.getBackground(AttributeSet attr) Takes a set of attributes and turn it into a background color specification.StyledDocument.getBackground(AttributeSet attr) Takes a set of attributes and turn it into a background color specification.static intStyleConstants.getBidiLevel(AttributeSet a) Gets the BidiLevel setting.static ComponentStyleConstants.getComponent(AttributeSet a) Gets the component setting from the attribute list.static floatStyleConstants.getFirstLineIndent(AttributeSet a) Gets the first line indent setting.DefaultStyledDocument.getFont(AttributeSet attr) Gets the font from an attribute set.StyleContext.getFont(AttributeSet attr) Gets the font from an attribute set.StyledDocument.getFont(AttributeSet attr) Takes a set of attributes and turn it into a font specification.static StringStyleConstants.getFontFamily(AttributeSet a) Gets the font family setting from the attribute list.static intStyleConstants.getFontSize(AttributeSet a) Gets the font size setting from the attribute list.DefaultStyledDocument.getForeground(AttributeSet attr) Gets the foreground color from an attribute set.static ColorStyleConstants.getForeground(AttributeSet a) Gets the foreground color setting from the attribute list.StyleContext.getForeground(AttributeSet attr) Takes a set of attributes and turn it into a foreground color specification.StyledDocument.getForeground(AttributeSet attr) Takes a set of attributes and turn it into a foreground color specification.static IconStyleConstants.getIcon(AttributeSet a) Gets the icon setting from the attribute list.static floatStyleConstants.getLeftIndent(AttributeSet a) Gets the left indent setting.static floatStyleConstants.getLineSpacing(AttributeSet a) Gets the line spacing setting.static floatStyleConstants.getRightIndent(AttributeSet a) Gets the right indent setting.static floatStyleConstants.getSpaceAbove(AttributeSet a) Gets the space above setting.static floatStyleConstants.getSpaceBelow(AttributeSet a) Gets the space below setting.static TabSetStyleConstants.getTabSet(AttributeSet a) Gets the TabSet.voidAbstractDocument.insertString(int offs, String str, AttributeSet a) Inserts some content into the document.voidDocument.insertString(int offset, String str, AttributeSet a) Inserts a string of content.abstract voidDocumentFilter.FilterBypass.insertString(int offset, String string, AttributeSet attr) Inserts the specified text, bypassing the DocumentFilter.voidDocumentFilter.insertString(DocumentFilter.FilterBypass fb, int offset, String string, AttributeSet attr) Invoked prior to insertion of text into the specified Document.voidPlainDocument.insertString(int offs, String str, AttributeSet a) Inserts some content into the document.protected voidAbstractDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr) Updates document structure as a result of text insertion.protected voidDefaultStyledDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr) Updates document structure as a result of text insertion.protected voidPlainDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr) Updates document structure as a result of text insertion.static booleanStyleConstants.isBold(AttributeSet a) Checks whether the bold attribute is set.booleanAbstractDocument.AbstractElement.isEqual(AttributeSet attr) Checks whether two attribute sets are equal.booleanAttributeSet.isEqual(AttributeSet attr) Determines if the two attribute sets are equivalent.booleanSimpleAttributeSet.isEqual(AttributeSet attr) Compares two attribute sets.booleanStyleContext.NamedStyle.isEqual(AttributeSet attr) Checks whether two attribute sets are equal.booleanStyleContext.SmallAttributeSet.isEqual(AttributeSet attr) Checks whether two attribute sets are equal.static booleanStyleConstants.isItalic(AttributeSet a) Checks whether the italic attribute is set.static booleanStyleConstants.isStrikeThrough(AttributeSet a) Checks whether the strikethrough attribute is set.static booleanStyleConstants.isSubscript(AttributeSet a) Checks whether the subscript attribute is set.static booleanStyleConstants.isSuperscript(AttributeSet a) Checks whether the superscript attribute is set.static booleanStyleConstants.isUnderline(AttributeSet a) Checks whether the underline attribute is set.voidAbstractDocument.AttributeContext.reclaim(AttributeSet a) Reclaims an attribute set.voidStyleContext.reclaim(AttributeSet a) Returns a set no longer needed by the MutableAttributeSet implementation.AbstractDocument.AttributeContext.removeAttribute(AttributeSet old, Object name) Removes an attribute from the set.StyleContext.removeAttribute(AttributeSet old, Object name) Removes an attribute from the set.voidAbstractDocument.AbstractElement.removeAttributes(AttributeSet attrs) Removes a set of attributes for the element.AbstractDocument.AttributeContext.removeAttributes(AttributeSet old, Enumeration<?> names) Removes a set of attributes for the element.AbstractDocument.AttributeContext.removeAttributes(AttributeSet old, AttributeSet attrs) Removes a set of attributes for the element.voidMutableAttributeSet.removeAttributes(AttributeSet attributes) Removes a set of attributes with the givenname.voidSimpleAttributeSet.removeAttributes(AttributeSet attributes) Removes a set of attributes from the list.voidStyleContext.NamedStyle.removeAttributes(AttributeSet attrs) Removes a set of attributes for the element.StyleContext.removeAttributes(AttributeSet old, Enumeration<?> names) Removes a set of attributes for the element.StyleContext.removeAttributes(AttributeSet old, AttributeSet attrs) Removes a set of attributes for the element.voidAbstractDocument.replace(int offset, int length, String text, AttributeSet attrs) Deletes the region of text fromoffsettooffset + length, and replaces it withtext.abstract voidDocumentFilter.FilterBypass.replace(int offset, int length, String string, AttributeSet attrs) Deletes the region of text fromoffsettooffset + length, and replaces it withtext.voidDocumentFilter.replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs) Invoked prior to replacing a region of text in the specified Document.voidJTextComponent.AccessibleJTextComponent.setAttributes(int startIndex, int endIndex, AttributeSet as) Sets attributes for the text between two indices.voidDefaultStyledDocument.setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace) Sets attributes for some part of the document.voidStyledDocument.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 final voidStyledEditorKit.StyledTextAction.setCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace) Applies the given attributes to character content.voidDefaultStyledDocument.setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace) Sets attributes for a paragraph.voidStyledDocument.setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace) Sets paragraph attributes.protected final voidStyledEditorKit.StyledTextAction.setParagraphAttributes(JEditorPane editor, AttributeSet attr, boolean replace) Applies the given attributes to paragraphs.protected voidCompositeView.setParagraphInsets(AttributeSet attr) Sets the insets from the paragraph attributes specified in the given attributes.voidAbstractDocument.AbstractElement.setResolveParent(AttributeSet parent) Sets the resolving parent.voidMutableAttributeSet.setResolveParent(AttributeSet parent) Sets the resolving parent.voidSimpleAttributeSet.setResolveParent(AttributeSet parent) Sets the resolving parent.voidStyleContext.NamedStyle.setResolveParent(AttributeSet parent) Sets the resolving parent.protected voidAbstractWriter.writeAttributes(AttributeSet attr) Writes out the set of attributes as " <name>=<value>" pairs.voidStyleContext.writeAttributes(ObjectOutputStream out, AttributeSet a) Context-specific handling of writing out attributesstatic voidStyleContext.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 AttributeSetModifierConstructorDescriptionAbstractElement(Element parent, AttributeSet a) Creates a new AbstractElement.AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing) Constructs anAttributeUndoableEdit.BranchElement(Element parent, AttributeSet a) Constructs a composite element that initially contains no children.ElementSpec(AttributeSet a, short type) Constructor useful for markup when the markup will not be stored in the document.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.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.LeafElement(Element parent, AttributeSet a, int offs0, int offs1) Constructs an element that represents content within the document (has no children).SimpleAttributeSet(AttributeSet source) Creates a new attribute set based on a supplied set of attributes.SmallAttributeSet(AttributeSet attrs) Constructs a SmallAttributeSet. -
Uses of AttributeSet in javax.swing.text.html
Classes in javax.swing.text.html that implement AttributeSetModifier and TypeClassDescriptionclassAn element that represents a structural block of HTML.classAn 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 AttributeSetModifier and TypeMethodDescriptionStyleSheet.addAttribute(AttributeSet old, Object key, Object value) Adds an attribute to the given set, and returns the new representative set.StyleSheet.addAttributes(AttributeSet old, AttributeSet attr) Adds a set of attributes to the element.BlockView.getAttributes()Fetches the attributes to use when rendering.abstract AttributeSetHTMLDocument.Iterator.getAttributes()Return the attributes for this tag.ImageView.getAttributes()Fetches the attributes to use when rendering.InlineView.getAttributes()Fetches the attributes to use when rendering.Option.getAttributes()Fetch the attributes associated with this option.ParagraphView.getAttributes()Fetches the attributes to use when rendering.StyleSheet.getDeclaration(String decl) Translates a CSS declaration to an AttributeSet that represents the CSS declaration.HTMLDocument.BlockElement.getResolveParent()Gets the resolving parent.HTMLDocument.RunElement.getResolveParent()Gets the resolving parent.StyleSheet.getViewAttributes(View v) Fetches a set of attributes to use in the view for displaying.StyleSheet.removeAttribute(AttributeSet old, Object key) Removes an attribute from the set.StyleSheet.removeAttributes(AttributeSet old, Enumeration<?> names) Removes a set of attributes for the element.StyleSheet.removeAttributes(AttributeSet old, AttributeSet attrs) Removes a set of attributes.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 AttributeSetModifier and TypeMethodDescriptionStyleSheet.addAttribute(AttributeSet old, Object key, Object value) Adds an attribute to the given set, and returns the new representative set.StyleSheet.addAttributes(AttributeSet old, AttributeSet attr) Adds a set of attributes to the element.protected voidHTMLWriter.closeOutUnwantedEmbeddedTags(AttributeSet attr) Searches the attribute set and for each tag that is stored in the tag vector.protected ElementHTMLDocument.createBranchElement(Element parent, AttributeSet a) Creates a document branch element, that can contain other elements.protected MutableAttributeSetStyleSheet.createLargeAttributeSet(AttributeSet a) Creates a large set of attributes that should trade off space for time.protected ElementHTMLDocument.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.SmallAttributeSetStyleSheet.createSmallAttributeSet(AttributeSet a) Creates a compact set of attributes that might be shared.StyleSheet.getBackground(AttributeSet a) Takes a set of attributes and turn it into a background color specification.StyleSheet.getBoxPainter(AttributeSet a) Fetches the box formatter to use for the given set of CSS attributes.StyleSheet.getFont(AttributeSet a) Fetches the font to use for the given set of attributes.StyleSheet.getForeground(AttributeSet a) Takes a set of attributes and turn it into a foreground color specification.static intHTML.getIntegerAttributeValue(AttributeSet attr, HTML.Attribute key, int def) Fetches an integer attribute value.StyleSheet.getListPainter(AttributeSet a) Fetches the list formatter to use for the given set of CSS attributes.protected voidHTMLDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr) Updates document structure as a result of text insertion.protected booleanHTMLWriter.isBlockTag(AttributeSet attr) Determines if the HTML.Tag associated with the element is a block tag.protected booleanHTMLWriter.matchNameAttribute(AttributeSet attr, HTML.Tag tag) Returns true if the StyleConstants.NameAttribute is equal to the tag that is passed in as a parameter.StyleSheet.removeAttribute(AttributeSet old, Object key) Removes an attribute from the set.StyleSheet.removeAttributes(AttributeSet old, Enumeration<?> names) Removes a set of attributes for the element.StyleSheet.removeAttributes(AttributeSet old, AttributeSet attrs) Removes a set of attributes.protected voidHTMLWriter.selectContent(AttributeSet attr) Writes out the content of the SELECT form element.voidHTMLDocument.setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace) Sets attributes for a paragraph.protected voidHTMLWriter.textAreaContent(AttributeSet attr) Writes out text that is contained in a TEXTAREA form element.StyleSheet.translateHTMLToCSS(AttributeSet htmlAttrSet) Converts a set of HTML attributes to an equivalent set of CSS attributes.protected voidHTMLWriter.writeAttributes(AttributeSet attr) Writes out the attribute set.protected voidMinimalHTMLWriter.writeAttributes(AttributeSet attr) Writes out all the attributes for the following types: StyleConstants.ParagraphConstants, StyleConstants.CharacterConstants, StyleConstants.FontConstants, StyleConstants.ColorConstants.protected voidHTMLWriter.writeEmbeddedTags(AttributeSet attr) Searches for embedded tags in the AttributeSet and writes them out.protected voidMinimalHTMLWriter.writeHTMLTags(AttributeSet attr) Generates bold <b>, italic <i>, and <u> tags for the text based on its attribute settings.protected voidMinimalHTMLWriter.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 AttributeSetModifierConstructorDescriptionBlockElement(Element parent, AttributeSet a) Constructs a composite element that initially contains no children.Option(AttributeSet attr) Creates a new Option object.RunElement(Element parent, AttributeSet a, int offs0, int offs1) Constructs an element that represents content within the document (has no children).