Uses of Interface javax.swing.text.AttributeSet

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 Option instance that uses the specified tag 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.
void
Closes out an unwanted embedded tag.
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
Overridden to tag content with the synthetic HTML.Tag.CONTENT tag.
boolean
Determines if it is a block tag or not.
boolean
Determines if javax.swing.text.StyleConstants.NameAttribute matches tag or not.
AttributeSet
Removes an attribute from the set.
AttributeSet
StyleSheet.removeAttributes(AttributeSet old, Enumeration names)
Removes a set of attributes for the element.
AttributeSet
Removes an attribute from the set.
void
Writes out the contents of a select element.
void
Writes out the contents of a textarea.
AttributeSet
Converts a set of HTML attributes to an equivalent set of CSS attributes.
void
Writes all the attributes in the attrSet, except for attrbutes with keys of javax.swing.text.html.HTML.Tag, javax.swing.text.StyleConstants or javax.swing.text.html.HTML.Attribute.ENDTAG.
void
Write a set of attributes.
void
Writes out an embedded tag.
void
Write bold, indent and underline tags.
void
Write the HTML attributes which do not have tag equivalents, e.g. attributes other than bold/italic/underlined.

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
Returns the combination of the document and the style sheet attributes.
AttributeSet
Returns the attributes that are used for rendering.
AttributeSet
Returns the attributes used to render this <option> tag.
AttributeSet
Returns the attributes used by this view.
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
StyleSheet.removeAttributes(AttributeSet old, Enumeration names)
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 gnu.javax.swing.text.html.parser

Classes implementing javax.swing.text.AttributeSet

class
A set, adapted to store HTML attributes.
class
Small fixed HTML attribute set.

Constructors with parameter type javax.swing.text.AttributeSet

Create a new small fixed attribute set that contains the unchangeable copy of the passed attribute set and inherits its parent.

Methods with parameter type javax.swing.text.AttributeSet

boolean
Returns true of this AttributeSet contains all of the specified attributes.
boolean
Check this set and another set for equality by content.
void
Set the parent set, containing the default values.

Methods with return type javax.swing.text.AttributeSet

AttributeSet
Copy attributes.
AttributeSet
THIS can be safely returned as the set is not mutable.
AttributeSet
Get the parent set, containing the default values.
AttributeSet
Get the parent that this set uses to resolve the not found attributes.

Uses in package gnu.javax.swing.text.html

Classes implementing javax.swing.text.AttributeSet

class
Contains the two combined attribute sets what are searched subsequently.

Methods with parameter type javax.swing.text.AttributeSet

AttributeSet
Create the CombinedAttributes what search in the two sets.
boolean
boolean

Methods with return type javax.swing.text.AttributeSet

AttributeSet
Create the CombinedAttributes what search in the two sets.
AttributeSet
AttributeSet
There is no one.

Uses in package java.awt

Methods with return type javax.swing.text.AttributeSet

AttributeSet

Uses in package javax.accessibility

Constructors with parameter type javax.swing.text.AttributeSet

Creates a new instance using the specified attributes and the supplied start and end indicies.

Fields of type javax.swing.text.AttributeSet

AttributeSet
The attributes of the text.

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

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
A set of attributes.
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.
Creates a new SimpleAttributeSet with the same attributes and resolve parent as the specified set.

Fields of type javax.swing.text.AttributeSet

AttributeSet
An empty attribute set.
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
Adds all the attributes from attributes to this set.
void
Adds all the attributes from attributes to this set.
void
Adds all the attributes from attributes to this set.
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
Returns true of this AttributeSet contains all of the specified attributes.
boolean
Returns true of this AttributeSet contains all of the specified attributes.
boolean
Returns true of this AttributeSet contains all of the specified attributes.
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
Returns the alignment specified in the given attributes, or ALIGN_LEFT if no alignment is specified.
Color
Extracts a background color from a set of attributes.
Color
Returns the background color specified in the given attributes, or Color.BLACK if no background color is specified.
Color
Color
getBackground
int
Returns the bidi level specified in the given attributes, or 0 if no bidi level is specified.
Component
Returns the component specified in the given attributes, or null if no component is specified.
float
Returns the indentation specified in the given attributes, or 0.0f if no indentation is specified.
Font
Extracts a font from a set of attributes.
Font
Font
getFont
String
Returns the font family specified in the given attributes, or Monospaced if no font family is specified.
int
Returns the font size specified in the given attributes, or 12 if no font size is specified.
Color
Extracts a foreground color from a set of attributes.
Color
Returns the foreground color specified in the given attributes, or Color.BLACK if no foreground color is specified.
Color
Color
getForeground
Icon
Returns the icon specified in the given attributes, or null if no icon is specified.
float
Returns the left indentation specified in the given attributes, or 0.0f if no left indentation is specified.
float
Returns the line spacing specified in the given attributes, or 0.0f if no line spacing is specified.
float
Returns the right indentation specified in the given attributes, or 0.0f if no right indentation is specified.
float
Returns the 'space above' specified in the given attributes, or 0.0f if no 'space above' is specified.
float
Returns the 'space below' specified in the given attributes, or 0.0f if no 'space below' is specified.
TabSet
Returns the tab set specified in the given attributes, or null if no tab set is specified.
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
Returns the value of the bold flag in the given attributes, or false if no bold flag is specified.
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
Returns true if all of the attributes in attr are equal to the attributes in this 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 the value of the italic flag in the given attributes, or false if no italic flag is specified.
boolean
Returns the value of the strike-through flag in the given attributes, or false if no strike-through flag is specified.
boolean
Returns the value of the subscript flag in the given attributes, or false if no subscript flag is specified.
boolean
Returns the value of the superscript flag in the given attributes, or false if no superscript flag is specified.
boolean
Returns the value of the underline flag in the given attributes, or false if no underline flag is specified.
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
Removes attributes from this set if they are found in the given set.
void
Removes attributes from this set if they are found in the given set.
void
Removes attributes from this set if they are found in the given set.
AttributeSet
Removes all attributes specified by names from old and returns the resulting AttributeSet.
AttributeSet
StyleContext.removeAttributes(AttributeSet old, Enumeration names)
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
Sets the attributes of all the text between two indexes.
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
Sets the reolving parent for this set.
void
Sets the reolving parent for this set.
void
Sets the reolving parent for this set.
void
Serialize an attribute set in a way that is compatible with it being read in again by readAttributeSet(ObjectInputStream,MutableAttributeSet).
void
Handles writing of the given attributes.
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
Creates and returns a copy of this AttributeSet.
AttributeSet
Creates and returns a copy of this AttributeSet.
AttributeSet
Creates and returns a copy of this AttributeSet.
AttributeSet
Returns the attributes of this element.
AttributeSet
Returns the attributes of the element.
AttributeSet
AttributeSet
AttributeSet
Gets the character attributes of the character at index.
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
Returns the resolving parent.
AttributeSet
Returns the resolving parent of this AttributeSet.
AttributeSet
Returns the resolving parent of this 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
StyleContext.removeAttributes(AttributeSet old, Enumeration names)
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.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
Returns the text attribute for the character at the specified character index.
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.