JSR-209 (Final Release)

Uses of Interface
javax.swing.text.AttributeSet

Packages that use AttributeSet
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. 
 

Uses of AttributeSet in javax.swing
 

Methods in javax.swing that return AttributeSet
 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
 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
 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
 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.
 

Methods in javax.swing.text that return AttributeSet
 AttributeSet Element.getAttributes()
          Fetches the collection of attributes this element contains.
 AttributeSet AttributeSet.copyAttributes()
          Returns an attribute set that is guaranteed not to change over time.
 AttributeSet AttributeSet.getResolveParent()
          Gets the resolving parent.
 AttributeSet AbstractDocument.AttributeContext.addAttribute(AttributeSet old, java.lang.Object name, java.lang.Object value)
          Adds an attribute to the given set, and returns the new representative set.
 AttributeSet AbstractDocument.AttributeContext.addAttributes(AttributeSet old, AttributeSet attr)
          Adds a set of attributes to the element.
 AttributeSet AbstractDocument.AttributeContext.removeAttribute(AttributeSet old, java.lang.Object name)
          Removes an attribute from the set.
 AttributeSet AbstractDocument.AttributeContext.removeAttributes(AttributeSet old, java.util.Enumeration names)
          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 AbstractDocument.AttributeContext.getEmptySet()
          Fetches an empty AttributeSet.
 AttributeSet AbstractDocument.AbstractElement.copyAttributes()
          Copies a set of attributes.
 AttributeSet AbstractDocument.AbstractElement.getResolveParent()
          Gets the resolving parent.
 AttributeSet AbstractDocument.AbstractElement.getAttributes()
          Gets the attributes for the element.
 AttributeSet View.getAttributes()
          Fetches the attributes to use when rendering.
 

Methods in javax.swing.text with parameters of type AttributeSet
 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.
 void StyledDocument.setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)
          Sets paragraph attributes.
 Color StyledDocument.getForeground(AttributeSet attr)
          Takes a set of attributes and turn it into a foreground color specification.
 Color StyledDocument.getBackground(AttributeSet attr)
          Takes a set of attributes and turn it into a background color specification.
 Font StyledDocument.getFont(AttributeSet attr)
          Takes a set of attributes and turn it into a font specification.
 void MutableAttributeSet.addAttributes(AttributeSet attributes)
          Creates a new attribute set similar to this one except that it contains the given attributes and values.
 void MutableAttributeSet.removeAttributes(AttributeSet attributes)
          Removes a set of attributes with the given name.
 void MutableAttributeSet.setResolveParent(AttributeSet parent)
          Sets the resolving parent.
 void DocumentFilter.insertString(DocumentFilter.FilterBypass fb, int offset, java.lang.String string, AttributeSet attr)
          Invoked prior to insertion of text into the specified Document.
 void DocumentFilter.replace(DocumentFilter.FilterBypass fb, int offset, int length, java.lang.String text, AttributeSet attrs)
          Invoked prior to replacing a region of text in the specified Document.
abstract  void DocumentFilter.FilterBypass.insertString(int offset, java.lang.String string, AttributeSet attr)
          Inserts the specified text, bypassing the DocumentFilter.
abstract  void DocumentFilter.FilterBypass.replace(int offset, int length, java.lang.String string, AttributeSet attrs)
          Deletes the region of text from offset to offset + length, and replaces it with text.
 boolean AttributeSet.isEqual(AttributeSet attr)
          Determines if the two attribute sets are equivalent.
 boolean AttributeSet.containsAttributes(AttributeSet attributes)
          Returns true if this set contains all the attributes with equal values.
 void AbstractDocument.replace(int offset, int length, java.lang.String text, AttributeSet attrs)
          Deletes the region of text from offset to offset + length, and replaces it with text.
 void AbstractDocument.insertString(int offs, java.lang.String str, AttributeSet a)
          Inserts some content into the document.
protected  void AbstractDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)
          Updates document structure as a result of text insertion.
protected  Element AbstractDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1)
          Creates a document leaf element.
protected  Element AbstractDocument.createBranchElement(Element parent, AttributeSet a)
          Creates a document branch element, that can contain other elements.
 AttributeSet AbstractDocument.AttributeContext.addAttribute(AttributeSet old, java.lang.Object name, java.lang.Object value)
          Adds an attribute to the given set, and returns the new representative set.
 AttributeSet AbstractDocument.AttributeContext.addAttributes(AttributeSet old, AttributeSet attr)
          Adds a set of attributes to the element.
 AttributeSet AbstractDocument.AttributeContext.removeAttribute(AttributeSet old, java.lang.Object name)
          Removes an attribute from the set.
 AttributeSet AbstractDocument.AttributeContext.removeAttributes(AttributeSet old, java.util.Enumeration names)
          Removes a set of attributes for the element.
 AttributeSet AbstractDocument.AttributeContext.removeAttributes(AttributeSet old, AttributeSet attrs)
          Removes a set of attributes for the element.
 void AbstractDocument.AttributeContext.reclaim(AttributeSet a)
          Reclaims an attribute set.
 boolean AbstractDocument.AbstractElement.isEqual(AttributeSet attr)
          Checks whether two attribute sets are equal.
 boolean AbstractDocument.AbstractElement.containsAttributes(AttributeSet attrs)
          Checks whether the element contains all the attributes.
 void AbstractDocument.AbstractElement.addAttributes(AttributeSet attr)
          Adds a set of attributes to the element.
 void AbstractDocument.AbstractElement.removeAttributes(AttributeSet attrs)
          Removes a set of attributes for the element.
 void AbstractDocument.AbstractElement.setResolveParent(AttributeSet parent)
          Sets the resolving parent.
 void Document.insertString(int offset, java.lang.String str, AttributeSet a)
          Inserts a string of content.
 

Constructors in javax.swing.text with parameters of type AttributeSet
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).
 


JSR-209 (Final Release)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.