Uses of Interface javax.swing.text.AttributeSet

Uses in package javax.swing.text

Classes implementing javax.swing.text.AttributeSet

class
An abstract base implementation of the Element interface.
class
An implementation of Element to represent composite Elements that contain other Elements.
class
An implementation of Element that represents a leaf in the document structure.
class
An element type for sections.
class
class
class

Constructors with parameter type javax.swing.text.AttributeSet

Creates a new instance of AbstractElement with a specified parent Element and AttributeSet.
Creates a new AttributeUndoableEdit.
Creates a new BranchElement with the specified parent and attributes.
Creates a new ElementSpec with no content, length or offset.
DefaultStyledDocument.ElementSpec.ElementSpec(AttributeSet a, short type, char[] txt, int offs, int len)
Creates a new ElementSpec with document content.
Creates a new ElementSpec that specifies the length but not the offset of an element.
AbstractDocument.LeafElement.LeafElement(Element parent, AttributeSet attributes, int start, int end)
Creates a new LeafElement.

Fields of type javax.swing.text.AttributeSet

AttributeSet
AttributeSet
A copy of the old attributes.
AttributeSet
The new attributes.

Methods with parameter type javax.swing.text.AttributeSet

AttributeSet
Returns an AttributeSet that contains the attributes of old plus the new attribute specified by name and value.
AttributeSet
Returns an AttributeSet that contains the attributes of old plus the new attribute specified by name and value.
void
Adds a set of attributes to this element.
void
addAttributes
void
addAttributes
void
AttributeSet
Returns an AttributeSet that contains the attributes of old plus the new attributes in attributes.
AttributeSet
Returns an AttributeSet that contains the attributes of old plus the new attributes in attributes.
boolean
Returns true if this element contains all of the specified attributes.
boolean
Returns true of this AttributeSet contains all of the specified attributes.
boolean
boolean
boolean
Element
Creates and returns a branch element with the specified parent and attributes.
MutableAttributeSet
Element
AbstractDocument.createLeafElement(Element parent, AttributeSet attributes, int start, int end)
Creates and returns a leaf element with the specified parent and attributes.
StyleContext.SmallAttributeSet
int
Color
Extracts a background color from a set of attributes.
Color
Color
Color
getBackground
int
Component
float
Font
Extracts a font from a set of attributes.
Font
Font
getFont
String
int
Color
Extracts a foreground color from a set of attributes.
Color
Color
Color
getForeground
Icon
float
float
float
float
float
TabSet
void
AbstractDocument.insertString(int offset, String text, AttributeSet attributes)
Inserts a String into this Document at the specified position and assigning the specified attributes to it.
void
Document.insertString(int offset, String str, AttributeSet a)
Inserts a piece of text with an AttributeSet at the specified offset.
void
void
Inserts a string into the document.
void
void
Called to indicate that text has been inserted into this Document.
void
Called in response to content insert actions.
void
Called to indicate that text has been inserted into this Document.
boolean
boolean
Returns true if the specified AttributeSet is equal to this element's AttributeSet, false otherwise.
boolean
Returns true if all of the attributes in attr are equal to the attributes in this AttributeSet, false otherwise.
boolean
Returns true if the given set has the same number of attributes as this set and containsAttributes(attr) returns true.
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
Called to indicate that the attributes in attributes are no longer used.
void
Called to indicate that the attributes in attributes are no longer used.
AttributeSet
Returns a AttributeSet that has the attribute with the specified name removed from old.
AttributeSet
Returns a AttributeSet that has the attribute with the specified name removed from old.
void
Removes a set of attributes from this element.
void
removeAttributes
void
Removes attributes from this set if they are found in the given set.
void
AttributeSet
Removes all attributes specified by names from old and returns the resulting AttributeSet.
AttributeSet
Removes all attributes specified by names from old and returns the resulting AttributeSet.
AttributeSet
Removes all attributes in attributes from old and returns the resulting AttributeSet.
AttributeSet
Removes all attributes in attributes from old and returns the resulting AttributeSet.
void
AbstractDocument.replace(int offset, int length, String text, AttributeSet attributes)
Replaces a piece of content in this Document with another piece of content.
void
DocumentFilter.FilterBypass.replace(int offset, int length, String string, AttributeSet attrs)
void
DocumentFilter.replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attr)
void
DefaultStyledDocument.setCharacterAttributes(int offset, int length, AttributeSet attributes, boolean replace)
Sets text attributes for the fragment specified by offset and length.
void
StyledDocument.setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace)
setCharacterAttributes
void
Sets the specified character attributes on the currently selected text of editor.
void
DefaultStyledDocument.setParagraphAttributes(int offset, int length, AttributeSet attributes, boolean replace)
Sets text attributes for the paragraph at the specified fragment.
void
StyledDocument.setParagraphAttributes(int offset, int length, AttributeSet set, boolean replace)
setParagraphAttributes
void
Sets the specified character attributes on the paragraph that contains the currently selected text of editor.
void
Sets the insets defined by attributes in attributes.
void
Sets the parent attribute set against which the element can resolve attributes that are not defined in itself.
void
setResolveParent
void
setResolveParent
void
void
void
void
Print the given AttributeSet as a sequence of assignment-like strings, e.g.

Methods with return type javax.swing.text.AttributeSet

AttributeSet
Returns an AttributeSet that contains the attributes of old plus the new attribute specified by name and value.
AttributeSet
Returns an AttributeSet that contains the attributes of old plus the new attribute specified by name and value.
AttributeSet
Returns an AttributeSet that contains the attributes of old plus the new attributes in attributes.
AttributeSet
Returns an AttributeSet that contains the attributes of old plus the new attributes in attributes.
AttributeSet
Returns a copy of the attributes of this element.
AttributeSet
Creates and returns a copy of this AttributeSet.
AttributeSet
AttributeSet
AttributeSet
AttributeSet
Returns the attributes of this element.
AttributeSet
Returns the attributes of the element.
AttributeSet
AttributeSet
AttributeSet
getCharacterAttribute
AttributeSet
Returns an empty AttributeSet.
AttributeSet
Returns an empty AttributeSet.
AttributeSet
Returns the resolve parent of this element.
AttributeSet
Returns the resolving parent of this AttributeSet.
AttributeSet
AttributeSet
AttributeSet
AttributeSet
Returns a AttributeSet that has the attribute with the specified name removed from old.
AttributeSet
Returns a AttributeSet that has the attribute with the specified name removed from old.
AttributeSet
Removes all attributes specified by names from old and returns the resulting AttributeSet.
AttributeSet
Removes all attributes specified by names from old and returns the resulting AttributeSet.
AttributeSet
Removes all attributes in attributes from old and returns the resulting AttributeSet.
AttributeSet
Removes all attributes in attributes from old and returns the resulting AttributeSet.

Uses in package javax.accessibility

Methods with parameter type javax.swing.text.AttributeSet

void
Set the attributes of text between two points.

Methods with return type javax.swing.text.AttributeSet

AttributeSet
Returns the attributes of a character at an index, or null if the index is out of bounds.

Uses in package javax.swing.text.html

Classes implementing javax.swing.text.AttributeSet

class
class
RunElement represents a section of text that has a set of HTML character level attributes assigned to it.

Constructors with parameter type javax.swing.text.AttributeSet

Creates a new BranchElement with the specified parent and attributes.
HTMLDocument.RunElement.RunElement(Element parent, AttributeSet a, int start, int end)
Constructs an element that has no children.

Methods with parameter type javax.swing.text.AttributeSet

AttributeSet
Adds an attribute to the given set and returns a new set.
AttributeSet
Adds a set of attributes to the element.
Element
This method returns an HTMLDocument.BlockElement object representing the attribute set a and attached to parent.
MutableAttributeSet
Creates a large set of attributes.
Element
HTMLDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1)
This method returns an HTMLDocument.RunElement object attached to parent representing a run of text from p0 to p1.
StyleContext.SmallAttributeSet
Creates a compact set of attributes that might be shared.
Color
Takes a set of attributes and turns it into a background color specification.
StyleSheet.BoxPainter
Gets the box formatter to use for the given set of CSS attributes.
Font
Gets the font to use for the given set.
Color
Takes a set of attributes and turns it into a foreground color specification.
int
HTML.getIntegerAttributeValue(AttributeSet set, HTML.Attribute attribute, int defaultValue)
Searches the value of given attribute in the provided set.
StyleSheet.ListPainter
Gets the list formatter to use for the given set of CSS attributes.
void
Updates document structure as a result of text insertion.
AttributeSet
Removes an attribute from the set.
AttributeSet
Removes a set of attributes for the element.
AttributeSet
Removes an attribute from the set.
void
HTMLDocument.setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)
This method sets the attributes associated with the paragraph containing offset.
AttributeSet
Converts a set of HTML attributes to an equivalent set of CSS attributes.

Methods with return type javax.swing.text.AttributeSet

AttributeSet
Adds an attribute to the given set and returns a new set.
AttributeSet
Adds a set of attributes to the element.
AttributeSet
Fetches the attributes to use when painting.
AttributeSet
Return the attribute set for this tag.
AttributeSet
Translates a CSS declaration into an AttributeSet.
AttributeSet
Gets the resolving parent.
AttributeSet
Gets the resolving parent.
AttributeSet
Gets a set of attributes to use in the view.
AttributeSet
Removes an attribute from the set.
AttributeSet
Removes a set of attributes for the element.
AttributeSet
Removes an attribute from the set.
AttributeSet
Converts a set of HTML attributes to an equivalent set of CSS attributes.

Uses in package java.awt

Methods with return type javax.swing.text.AttributeSet

AttributeSet

Uses in package javax.swing

Methods with parameter type javax.swing.text.AttributeSet

void
JTextPane.setCharacterAttributes(AttributeSet attribute, boolean replace)
Sets text attributes for the current selection.
void
JTextPane.setParagraphAttributes(AttributeSet attribute, boolean replace)
Sets text attributes for the paragraph at the current selection.

Methods with return type javax.swing.text.AttributeSet

AttributeSet
AttributeSet
Returns an AttributeSet that reflects the text attributes of the specified character.
AttributeSet
Returns the text attributes for the character at the current caret position.
AttributeSet
Returns the text attributes of the paragraph at the current caret position.