| 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.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeSet |
TextComponent.AccessibleAWTTextComponent.getCharacterAttribute(int i)
Returns the AttributeSet for a given character (at a given index).
|
| Modifier and Type | Field and Description |
|---|---|
AttributeSet |
AccessibleAttributeSequence.attributes
The text attributes
|
| Modifier and Type | Method and Description |
|---|---|
AttributeSet |
AccessibleText.getCharacterAttribute(int i)
Returns the AttributeSet for a given character at a given index
|
| Modifier and Type | Method and Description |
|---|---|
void |
AccessibleEditableText.setAttributes(int startIndex, int endIndex, AttributeSet
Sets attributes for the text between two indices.
|
| Constructor and Description | |
|---|---|
AccessibleAttributeSequence(int start, int end, AttributeSet
Constructs an
AccessibleAttributeSequence with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeSet |
JLabel.AccessibleJLabel.getCharacterAttribute(int i)
Return 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 |
JSpinner.AccessibleJSpinner.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 |
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JSpinner.AccessibleJSpinner.setAttributes(int startIndex, int endIndex, AttributeSet
Sets attributes for the text between two indices.
|
void |
JTextPane.setCharacterAttributes(AttributeSet
Applies the given attributes to character content.
|
void |
JTextPane.setParagraphAttributes(AttributeSet
Applies the given attributes to paragraphs.
|
| 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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDocument
Implements the abstract part of an element.
|
class |
AbstractDocument
Implements a composite element that contains other elements.
|
class |
AbstractDocument
Implements an element that directly represents content of some kind.
|
protected class |
DefaultStyledDocument
Default root element for a document...
|
class |
SimpleAttributeSet
A straightforward implementation of MutableAttributeSet using a hash table.
|
class |
StyleContext
A collection of attributes, typically used to represent character and paragraph styles.
|
class |
StyleContext
This class holds a small number of attributes in an array.
|
| Modifier and Type | Field and Description |
|---|---|
protected AttributeSet |
DefaultStyledDocument.AttributeUndoableEdit.copy
|
static AttributeSet |
SimpleAttributeSet.EMPTY
An empty attribute set.
|
protected AttributeSet |
DefaultStyledDocument.AttributeUndoableEdit.newAttributes
|
| Modifier and Type | Method and Description |
|---|---|
AttributeSet |
StyleContext.addAttribute(AttributeSet
Adds an attribute to the given set, and returns the new representative set.
|
AttributeSet |
AbstractDocument.AttributeContext.addAttribute(AttributeSet
Adds an attribute to the given set, and returns the new representative set.
|
AttributeSet |
StyleContext.addAttributes(AttributeSet
Adds a set of attributes to the element.
|
AttributeSet |
AbstractDocument.AttributeContext.addAttributes(AttributeSet
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 |
AttributeSet.copyAttributes()
Returns an attribute set that is guaranteed not to change over time.
|
AttributeSet |
AbstractDocument.AbstractElement.copyAttributes()
Copies a set of attributes.
|
AttributeSet |
SimpleAttributeSet.copyAttributes()
Makes a copy of the attributes.
|
AttributeSet |
AbstractDocument.AbstractElement.getAttributes()
Gets the attributes for the element.
|
AttributeSet |
DefaultStyledDocument.ElementSpec.getAttributes()
Gets the element attributes.
|
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 |
AttributeSet.getResolveParent()
Gets the resolving parent.
|
AttributeSet |
AbstractDocument.AbstractElement.getResolveParent()
Gets the resolving parent.
|
AttributeSet |
SimpleAttributeSet.getResolveParent()
Gets the resolving parent.
|
AttributeSet |
StyleContext.removeAttribute(AttributeSet
Removes an attribute from the set.
|
AttributeSet |
AbstractDocument.AttributeContext.removeAttribute(AttributeSet
Removes an attribute from the set.
|
AttributeSet |
StyleContext.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
AttributeSet |
AbstractDocument.AttributeContext.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
AttributeSet |
StyleContext.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
AttributeSet |
AbstractDocument.AttributeContext.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeSet |
StyleContext.addAttribute(AttributeSet
Adds an attribute to the given set, and returns the new representative set.
|
AttributeSet |
AbstractDocument.AttributeContext.addAttribute(AttributeSet
Adds an attribute to the given set, and returns the new representative set.
|
void |
StyleContext.NamedStyle.addAttributes(AttributeSet
Adds a set of attributes to the element.
|
void |
MutableAttributeSet.addAttributes(AttributeSet
Creates a new attribute set similar to this one except that it contains the given attributes and values.
|
void |
AbstractDocument.AbstractElement.addAttributes(AttributeSet
Adds a set of attributes to the element.
|
void |
SimpleAttributeSet.addAttributes(AttributeSet
Adds a set of attributes to the list.
|
AttributeSet |
StyleContext.addAttributes(AttributeSet
Adds a set of attributes to the element.
|
AttributeSet |
AbstractDocument.AttributeContext.addAttributes(AttributeSet
Adds a set of attributes to the element.
|
boolean |
StyleContext.SmallAttributeSet.containsAttributes(AttributeSet
Checks whether the attribute set contains all of the given attributes.
|
boolean |
StyleContext.NamedStyle.containsAttributes(AttributeSet
Checks whether the element contains all the attributes.
|
boolean |
AttributeSet.containsAttributes(AttributeSet
Returns
true if this set defines all the attributes from the given set with equal values.
|
boolean |
AbstractDocument.AbstractElement.containsAttributes(AttributeSet
Checks whether the element contains all the attributes.
|
boolean |
SimpleAttributeSet.containsAttributes(AttributeSet
Checks whether the attribute list contains all the specified name/value pairs.
|
protected Element |
AbstractDocument.createBranchElement(Element
Creates a document branch element, that can contain other elements.
|
protected MutableAttributeSet |
StyleContext.createLargeAttributeSet(AttributeSet
Create a large set of attributes that should trade off space for time.
|
protected Element |
AbstractDocument.createLeafElement(Element
Creates a document leaf element.
|
protected StyleContext |
StyleContext.createSmallAttributeSet(AttributeSet
Create a compact set of attributes that might be shared.
|
static int |
StyleConstants.getAlignment(AttributeSet
Gets the alignment setting.
|
Color |
StyleContext.getBackground(AttributeSet
Takes a set of attributes and turn it into a background color specification.
|
Color |
DefaultStyledDocument.getBackground(AttributeSet
Gets the background color from an attribute set.
|
static Color |
StyleConstants.getBackground(AttributeSet
Gets the background color setting from the attribute list.
|
Color |
StyledDocument.getBackground(AttributeSet
Takes a set of attributes and turn it into a background color specification.
|
static int |
StyleConstants.getBidiLevel(AttributeSet
Gets the BidiLevel setting.
|
static Component |
StyleConstants.getComponent(AttributeSet
Gets the component setting from the attribute list.
|
static float |
StyleConstants.getFirstLineIndent(AttributeSet
Gets the first line indent setting.
|
Font |
StyleContext.getFont(AttributeSet
Gets the font from an attribute set.
|
Font |
DefaultStyledDocument.getFont(AttributeSet
Gets the font from an attribute set.
|
Font |
StyledDocument.getFont(AttributeSet
Takes a set of attributes and turn it into a font specification.
|
static String |
StyleConstants.getFontFamily(AttributeSet
Gets the font family setting from the attribute list.
|
static int |
StyleConstants.getFontSize(AttributeSet
Gets the font size setting from the attribute list.
|
Color |
StyleContext.getForeground(AttributeSet
Takes a set of attributes and turn it into a foreground color specification.
|
Color |
DefaultStyledDocument.getForeground(AttributeSet
Gets the foreground color from an attribute set.
|
static Color |
StyleConstants.getForeground(AttributeSet
Gets the foreground color setting from the attribute list.
|
Color |
StyledDocument.getForeground(AttributeSet
Takes a set of attributes and turn it into a foreground color specification.
|
static Icon |
StyleConstants.getIcon(AttributeSet
Gets the icon setting from the attribute list.
|
static float |
StyleConstants.getLeftIndent(AttributeSet
Gets the left indent setting.
|
static float |
StyleConstants.getLineSpacing(AttributeSet
Gets the line spacing setting.
|
static float |
StyleConstants.getRightIndent(AttributeSet
Gets the right indent setting.
|
static float |
StyleConstants.getSpaceAbove(AttributeSet
Gets the space above setting.
|
static float |
StyleConstants.getSpaceBelow(AttributeSet
Gets the space below setting.
|
static TabSet |
StyleConstants.getTabSet(AttributeSet
Gets the TabSet.
|
void |
DocumentFilter.insertString(DocumentFilter
Invoked prior to insertion of text into the specified Document.
|
abstract void |
DocumentFilter.FilterBypass.insertString(int offset, String
Inserts the specified text, bypassing the DocumentFilter.
|
void |
AbstractDocument.insertString(int offs, String
Inserts some content into the document.
|
void |
PlainDocument.insertString(int offs, String
Inserts some content into the document.
|
void |
Document.insertString(int offset, String
Inserts a string of content.
|
protected void |
AbstractDocument.insertUpdate(AbstractDocument
Updates document structure as a result of text insertion.
|
protected void |
DefaultStyledDocument.insertUpdate(AbstractDocument
Updates document structure as a result of text insertion.
|
protected void |
PlainDocument.insertUpdate(AbstractDocument
Updates document structure as a result of text insertion.
|
static boolean |
StyleConstants.isBold(AttributeSet
Checks whether the bold attribute is set.
|
boolean |
StyleContext.SmallAttributeSet.isEqual(AttributeSet
Checks whether two attribute sets are equal.
|
boolean |
StyleContext.NamedStyle.isEqual(AttributeSet
Checks whether two attribute sets are equal.
|
boolean |
AttributeSet.isEqual(AttributeSet
Determines if the two attribute sets are equivalent.
|
boolean |
AbstractDocument.AbstractElement.isEqual(AttributeSet
Checks whether two attribute sets are equal.
|
boolean |
SimpleAttributeSet.isEqual(AttributeSet
Compares two attribute sets.
|
static boolean |
StyleConstants.isItalic(AttributeSet
Checks whether the italic attribute is set.
|
static boolean |
StyleConstants.isStrikeThrough(AttributeSet
Checks whether the strikethrough attribute is set.
|
static boolean |
StyleConstants.isSubscript(AttributeSet
Checks whether the subscript attribute is set.
|
static boolean |
StyleConstants.isSuperscript(AttributeSet
Checks whether the superscript attribute is set.
|
static boolean |
StyleConstants.isUnderline(AttributeSet
Checks whether the underline attribute is set.
|
void |
StyleContext.reclaim(AttributeSet
Returns a set no longer needed by the MutableAttributeSet implementation.
|
void |
AbstractDocument.AttributeContext.reclaim(AttributeSet
Reclaims an attribute set.
|
AttributeSet |
StyleContext.removeAttribute(AttributeSet
Removes an attribute from the set.
|
AttributeSet |
AbstractDocument.AttributeContext.removeAttribute(AttributeSet
Removes an attribute from the set.
|
void |
StyleContext.NamedStyle.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
void |
MutableAttributeSet.removeAttributes(AttributeSet
Removes a set of attributes with the given
name.
|
void |
AbstractDocument.AbstractElement.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
void |
SimpleAttributeSet.removeAttributes(AttributeSet
Removes a set of attributes from the list.
|
AttributeSet |
StyleContext.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
AttributeSet |
AbstractDocument.AttributeContext.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
AttributeSet |
StyleContext.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
AttributeSet |
AbstractDocument.AttributeContext.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
void |
DocumentFilter.replace(DocumentFilter
Invoked prior to replacing a region of text in the specified Document.
|
abstract void |
DocumentFilter.FilterBypass.replace(int offset, int length, String
Deletes the region of text from
offset to
offset + length, and replaces it with
text.
|
void |
AbstractDocument.replace(int offset, int length, String
Deletes the region of text from
offset to
offset + length, and replaces it with
text.
|
void |
JTextComponent.AccessibleJTextComponent.setAttributes(int startIndex, int endIndex, AttributeSet
Sets attributes for the text between two indices.
|
void |
DefaultStyledDocument.setCharacterAttributes(int offset, int length, AttributeSet
Sets attributes for some part of the document.
|
void |
StyledDocument.setCharacterAttributes(int offset, int length, AttributeSet
Changes the content element attributes used for the given range of existing content in the document.
|
protected void |
StyledEditorKit.StyledTextAction.setCharacterAttributes(JEditorPane
Applies the given attributes to character content.
|
void |
DefaultStyledDocument.setParagraphAttributes(int offset, int length, AttributeSet
Sets attributes for a paragraph.
|
void |
StyledDocument.setParagraphAttributes(int offset, int length, AttributeSet
Sets paragraph attributes.
|
protected void |
StyledEditorKit.StyledTextAction.setParagraphAttributes(JEditorPane
Applies the given attributes to paragraphs.
|
protected void |
CompositeView.setParagraphInsets(AttributeSet
Sets the insets from the paragraph attributes specified in the given attributes.
|
void |
StyleContext.NamedStyle.setResolveParent(AttributeSet
Sets the resolving parent.
|
void |
MutableAttributeSet.setResolveParent(AttributeSet
Sets the resolving parent.
|
void |
AbstractDocument.AbstractElement.setResolveParent(AttributeSet
Sets the resolving parent.
|
void |
SimpleAttributeSet.setResolveParent(AttributeSet
Sets the resolving parent.
|
protected void |
AbstractWriter.writeAttributes(AttributeSet
Writes out the set of attributes as " <name>=<value>" pairs.
|
void |
StyleContext.writeAttributes(ObjectOutputStream
Context-specific handling of writing out attributes
|
static void |
StyleContext.writeAttributeSet(ObjectOutputStream
Writes a set of attributes to the given object stream for the purpose of serialization.
|
| Constructor and Description | |
|---|---|
AbstractElement(Element
Creates a new AbstractElement.
|
|
AttributeUndoableEdit(Element
|
|
BranchElement(Element
Constructs a composite element that initially contains no children.
|
|
ElementSpec(AttributeSet
Constructor useful for markup when the markup will not be stored in the document.
|
|
ElementSpec(AttributeSet
Constructor for creating a spec externally for batch input of content and markup into the document.
|
|
ElementSpec(AttributeSet
Constructor for parsing inside the document when the data has already been added, but len information is needed.
|
|
LeafElement(Element
Constructs an element that represents content within the document (has no children).
|
|
SimpleAttributeSet(AttributeSet
Creates a new attribute set based on a supplied set of attributes.
|
|
SmallAttributeSet(AttributeSet
|
| Modifier and Type | Class and Description |
|---|---|
class |
HTMLDocument
An element that represents a structural
block of HTML.
|
class |
HTMLDocument
An element that represents a chunk of text that has a set of HTML character level attributes assigned to it.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeSet |
StyleSheet.addAttribute(AttributeSet
Adds an attribute to the given set, and returns the new representative set.
|
AttributeSet |
StyleSheet.addAttributes(AttributeSet
Adds a set of attributes to the element.
|
AttributeSet |
ImageView.getAttributes()
Fetches the attributes to use when rendering.
|
AttributeSet |
ParagraphView.getAttributes()
Fetches the attributes to use when rendering.
|
AttributeSet |
Option.getAttributes()
Fetch the attributes associated with this option.
|
abstract AttributeSet |
HTMLDocument.Iterator.getAttributes()
Return the attributes for this tag.
|
AttributeSet |
InlineView.getAttributes()
Fetches the attributes to use when rendering.
|
AttributeSet |
BlockView.getAttributes()
Fetches the attributes to use when rendering.
|
AttributeSet |
StyleSheet.getDeclaration(String
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
Fetches a set of attributes to use in the view for displaying.
|
AttributeSet |
StyleSheet.removeAttribute(AttributeSet
Removes an attribute from the set.
|
AttributeSet |
StyleSheet.removeAttributes(AttributeSet
Removes a set of attributes.
|
AttributeSet |
StyleSheet.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
AttributeSet |
StyleSheet.translateHTMLToCSS(AttributeSet
Converts a set of HTML attributes to an equivalent set of CSS attributes.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeSet |
StyleSheet.addAttribute(AttributeSet
Adds an attribute to the given set, and returns the new representative set.
|
AttributeSet |
StyleSheet.addAttributes(AttributeSet
Adds a set of attributes to the element.
|
protected void |
HTMLWriter.closeOutUnwantedEmbeddedTags(AttributeSet
Searches the attribute set and for each tag that is stored in the tag vector.
|
protected Element |
HTMLDocument.createBranchElement(Element
Creates a document branch element, that can contain other elements.
|
protected MutableAttributeSet |
StyleSheet.createLargeAttributeSet(AttributeSet
Creates a large set of attributes that should trade off space for time.
|
protected Element |
HTMLDocument.createLeafElement(Element
Creates a document leaf element that directly represents text (doesn't have any children).
|
protected StyleContext |
StyleSheet.createSmallAttributeSet(AttributeSet
Creates a compact set of attributes that might be shared.
|
Color |
StyleSheet.getBackground(AttributeSet
Takes a set of attributes and turn it into a background color specification.
|
StyleSheet |
StyleSheet.getBoxPainter(AttributeSet
Fetches the box formatter to use for the given set of CSS attributes.
|
Font |
StyleSheet.getFont(AttributeSet
Fetches the font to use for the given set of attributes.
|
Color |
StyleSheet.getForeground(AttributeSet
Takes a set of attributes and turn it into a foreground color specification.
|
static int |
HTML.getIntegerAttributeValue(AttributeSet
Fetches an integer attribute value.
|
StyleSheet |
StyleSheet.getListPainter(AttributeSet
Fetches the list formatter to use for the given set of CSS attributes.
|
protected void |
HTMLDocument.insertUpdate(AbstractDocument
Updates document structure as a result of text insertion.
|
protected boolean |
HTMLWriter.isBlockTag(AttributeSet
Determines if the HTML.Tag associated with the element is a block tag.
|
protected boolean |
HTMLWriter.matchNameAttribute(AttributeSet
Returns true if the StyleConstants.NameAttribute is equal to the tag that is passed in as a parameter.
|
AttributeSet |
StyleSheet.removeAttribute(AttributeSet
Removes an attribute from the set.
|
AttributeSet |
StyleSheet.removeAttributes(AttributeSet
Removes a set of attributes.
|
AttributeSet |
StyleSheet.removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
protected void |
HTMLWriter.selectContent(AttributeSet
Writes out the content of the SELECT form element.
|
void |
HTMLDocument.setParagraphAttributes(int offset, int length, AttributeSet
Sets attributes for a paragraph.
|
protected void |
HTMLWriter.textAreaContent(AttributeSet
Writes out text that is contained in a TEXTAREA form element.
|
AttributeSet |
StyleSheet.translateHTMLToCSS(AttributeSet
Converts a set of HTML attributes to an equivalent set of CSS attributes.
|
protected void |
HTMLWriter.writeAttributes(AttributeSet
Writes out the attribute set.
|
protected void |
MinimalHTMLWriter.writeAttributes(AttributeSet
Writes out all the attributes for the following types: StyleConstants.ParagraphConstants, StyleConstants.CharacterConstants, StyleConstants.FontConstants, StyleConstants.ColorConstants.
|
protected void |
HTMLWriter.writeEmbeddedTags(AttributeSet
Searches for embedded tags in the AttributeSet and writes them out.
|
protected void |
MinimalHTMLWriter.writeHTMLTags(AttributeSet
Generates bold <b>, italic <i>, and <u> tags for the text based on its attribute settings.
|
protected void |
MinimalHTMLWriter.writeNonHTMLAttributes(AttributeSet
Writes out the remaining character-level attributes (attributes other than bold, italic, and underline) in an HTML-compliant way.
|
| Constructor and Description | |
|---|---|
BlockElement(Element
Constructs a composite element that initially contains no children.
|
|
Option(AttributeSet
Creates a new Option object.
|
|
RunElement(Element
Constructs an element that represents content within the document (has no children).
|