|
Java Platform 1.2 Beta 4 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use AttributeSet | |
com.sun.java.accessibility | |
com.sun.java.swing | Provides a set of "lightweight" (all-Java |
com.sun.java.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
com.sun.java.swing.text.html | Provides the class (HTMLEditorKit) and supporting classes for creating HTML text editors. |
Uses of AttributeSet in com.sun.java.accessibility |
Methods in com.sun.java.accessibility that return AttributeSet | |
AttributeSet | AccessibleText.getCharacterAttribute(int i)
Return the AttributeSet for a given character at a given index |
Uses of AttributeSet in com.sun.java.swing |
Methods in com.sun.java.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 com.sun.java.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 com.sun.java.swing.text |
Subinterfaces of AttributeSet in com.sun.java.swing.text | |
MutableAttributeSet
A generic interface for a mutable collection of unique attributes. |
|
Style
A collection of attributes to associate with an element in a document. |
Classes in com.sun.java.swing.text that implement AttributeSet | |
AbstractDocument.AbstractElement
Implements the abstract part of an element. |
|
AbstractDocument.BranchElement
Implements a composite element that contains other elements. |
|
AbstractDocument.LeafElement
Implements an element that directly represents content of some kind. |
|
protected | DefaultStyledDocument.SectionElement
Default root element for a document... maps out the paragraphs/lines contained. |
SimpleAttributeSet
A straightforward implementation of MutableAttributeSet using a hash table. |
|
StyleContext.NamedStyle
A collection of attributes, typically used to represent character and paragraph styles. |
Fields in com.sun.java.swing.text declared as AttributeSet | |
static AttributeSet | SimpleAttributeSet.EMPTY
An empty attribute set. |
Methods in com.sun.java.swing.text that return AttributeSet | |
AttributeSet | JTextComponent.AccessibleJTextComponent.getCharacterAttribute(int i)
Returns the AttributeSet for a given character (at a given index). |
AttributeSet | View.getAttributes()
Fetches the attributes to use when rendering. |
AttributeSet | Element.getAttributes()
Fetches the collection of attributes this element contains. |
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 | DefaultStyledDocument.ElementSpec.getAttributes()
Gets the element attributes. |
AttributeSet | StyleContext.addAttribute(AttributeSet old,
Object name,
Object value)
Adds an attribute to the given set, and returns the new representative set. |
AttributeSet | StyleContext.addAttributes(AttributeSet old,
AttributeSet attr)
Adds a set of attributes to the element. |
AttributeSet | StyleContext.removeAttribute(AttributeSet old,
Object name)
Removes an attribute from the set. |
AttributeSet | StyleContext.removeAttributes(AttributeSet old,
Enumeration names)
Removes a set of attributes for the element. |
AttributeSet | StyleContext.removeAttributes(AttributeSet old,
AttributeSet attrs)
Removes a set of attributes for the element. |
AttributeSet | StyleContext.getEmptySet()
Fetches an empty AttributeSet. |
AttributeSet | StyleContext.NamedStyle.copyAttributes()
Copies a set of attributes. |
AttributeSet | StyleContext.NamedStyle.getResolveParent()
Gets attributes from the parent. |
AttributeSet | SimpleAttributeSet.copyAttributes()
Makes a copy of the attributes. |
AttributeSet | SimpleAttributeSet.getResolveParent()
Gets the resolving parent. |
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,
Object name,
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,
Object name)
Removes an attribute from the set. |
AttributeSet | AbstractDocument.AttributeContext.removeAttributes(AttributeSet old,
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. |
Methods in com.sun.java.swing.text with parameters of type AttributeSet | |
protected void | CompositeView.setParagraphInsets(AttributeSet attr)
Sets the insets from the paragraph attributes specified in the given attributes. |
void | Document.insertString(int offset,
String str,
AttributeSet a)
Inserts a string of content. |
void | AbstractDocument.insertString(int offs,
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. |
void | DefaultStyledDocument.setCharacterAttributes(int offset,
int length,
AttributeSet s,
boolean replace)
Sets attributes for some part of the document. |
void | DefaultStyledDocument.setParagraphAttributes(int offset,
int length,
AttributeSet s,
boolean replace)
Sets attributes for a paragraph. |
protected void | DefaultStyledDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng,
AttributeSet attr)
Updates document structure as a result of text insertion. |
Color | DefaultStyledDocument.getForeground(AttributeSet attr)
Gets the foreground color from an attribute set. |
Color | DefaultStyledDocument.getBackground(AttributeSet attr)
Gets the background color from an attribute set. |
Font | DefaultStyledDocument.getFont(AttributeSet attr)
Gets the font from 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. |
Font | StyleContext.getFont(AttributeSet attr)
Gets the font from an attribute set. |
Color | StyleContext.getForeground(AttributeSet attr)
Takes a set of attributes and turn it into a foreground color specification. |
Color | StyleContext.getBackground(AttributeSet attr)
Takes a set of attributes and turn it into a background color specification. |
AttributeSet | StyleContext.addAttribute(AttributeSet old,
Object name,
Object value)
Adds an attribute to the given set, and returns the new representative set. |
AttributeSet | StyleContext.addAttributes(AttributeSet old,
AttributeSet attr)
Adds a set of attributes to the element. |
AttributeSet | StyleContext.removeAttribute(AttributeSet old,
Object name)
Removes an attribute from the set. |
AttributeSet | StyleContext.removeAttributes(AttributeSet old,
Enumeration names)
Removes a set of attributes for the element. |
AttributeSet | StyleContext.removeAttributes(AttributeSet old,
AttributeSet attrs)
Removes a set of attributes for the element. |
void | StyleContext.reclaim(AttributeSet a)
Returns a set no longer needed by the MutableAttributeSet implmentation. |
void | StyleContext.writeAttributes(ObjectOutputStream out,
AttributeSet a)
Context-specific handling of writing out attributes |
static void | StyleContext.writeAttributeSet(ObjectOutputStream out,
AttributeSet a)
Writes a set of attributes to the given object stream for the purpose of serialization. |
boolean | StyleContext.NamedStyle.isEqual(AttributeSet attr)
Checks whether two attribute sets are equal. |
boolean | StyleContext.NamedStyle.containsAttributes(AttributeSet attrs)
Checks whether the element contains all the attributes. |
void | StyleContext.NamedStyle.addAttributes(AttributeSet attr)
Adds a set of attributes to the element. |
void | StyleContext.NamedStyle.removeAttributes(AttributeSet attrs)
Removes a set of attributes for the element. |
void | StyleContext.NamedStyle.setResolveParent(AttributeSet parent)
Sets the resolving parent. |
boolean | SimpleAttributeSet.isEqual(AttributeSet attr)
Compares two attribute sets. |
boolean | SimpleAttributeSet.containsAttributes(AttributeSet attributes)
Checks whether the attribute list contains all the specified name/value pairs. |
void | SimpleAttributeSet.addAttributes(AttributeSet attributes)
Adds a set of attributes to the list. |
void | SimpleAttributeSet.removeAttributes(AttributeSet attributes)
Removes a set of attributes from the list. |
void | SimpleAttributeSet.setResolveParent(AttributeSet parent)
Sets the resolving parent. |
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. |
protected void | AbstractWriter.writeAttributes(AttributeSet attr)
Writes out the set of attributes as " |
protected void | StyledEditorKit.StyledTextAction.setCharacterAttributes(JEditorPane editor,
AttributeSet attr,
boolean replace)
Applies the given attributes to character content. |
protected void | StyledEditorKit.StyledTextAction.setParagraphAttributes(JEditorPane editor,
AttributeSet attr,
boolean replace)
Applies the given attributes to paragraphs. |
protected void | PlainDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng,
AttributeSet attr)
Updates document structure as a result of text insertion. |
AttributeSet | AbstractDocument.AttributeContext.addAttribute(AttributeSet old,
Object name,
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,
Object name)
Removes an attribute from the set. |
AttributeSet | AbstractDocument.AttributeContext.removeAttributes(AttributeSet old,
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. |
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. |
static int | StyleConstants.getBidiLevel(AttributeSet a)
Gets the BidiLevel setting. |
static Component | StyleConstants.getComponent(AttributeSet a)
Gets the component setting from the attribute list. |
static Icon | StyleConstants.getIcon(AttributeSet a)
Gets the icon setting from the attribute list. |
static String | StyleConstants.getFontFamily(AttributeSet a)
Gets the font family setting from the attribute list. |
static int | StyleConstants.getFontSize(AttributeSet a)
Gets the font size setting from the attribute list. |
static boolean | StyleConstants.isBold(AttributeSet a)
Checks whether the bold attribute is set. |
static boolean | StyleConstants.isItalic(AttributeSet a)
Checks whether the italic attribute is set. |
static boolean | StyleConstants.isUnderline(AttributeSet a)
Checks whether the underline attribute is set. |
static Color | StyleConstants.getForeground(AttributeSet a)
Gets the foreground color setting from the attribute list. |
static Color | StyleConstants.getBackground(AttributeSet a)
Gets the background color setting from the attribute list. |
static float | StyleConstants.getFirstLineIndent(AttributeSet a)
Gets the first line indent setting. |
static float | StyleConstants.getRightIndent(AttributeSet a)
Gets the right indent setting. |
static float | StyleConstants.getLeftIndent(AttributeSet a)
Gets the left indent setting. |
static float | StyleConstants.getLineSpacing(AttributeSet a)
Gets the line spacing setting. |
static float | StyleConstants.getSpaceAbove(AttributeSet a)
Gets the space above setting. |
static float | StyleConstants.getSpaceBelow(AttributeSet a)
Gets the space below setting. |
static int | StyleConstants.getAlignment(AttributeSet a)
Gets the alignment setting. |
static TabSet | StyleConstants.getTabSet(AttributeSet a)
Gets the TabSet. |
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)
Creates a new attribute set similar to this one except that it contains no attribute with any of the given names and values. |
void | MutableAttributeSet.setResolveParent(AttributeSet parent)
Sets the resolving parent. |
Constructors in com.sun.java.swing.text with parameters of type AttributeSet | |
AbstractDocument.AbstractElement.AbstractDocument.AbstractElement(Element parent,
AttributeSet a)
Creates a new AbstractElement. |
|
AbstractDocument.BranchElement.AbstractDocument.BranchElement(Element parent,
AttributeSet a)
Constructs a composite element that initially contains no children. |
|
DefaultStyledDocument.ElementSpec.DefaultStyledDocument.ElementSpec(AttributeSet a,
short type)
Constructor useful for markup when the markup will not be stored in the document. |
|
DefaultStyledDocument.ElementSpec.DefaultStyledDocument.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. |
|
DefaultStyledDocument.ElementSpec.DefaultStyledDocument.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. |
|
SimpleAttributeSet.SimpleAttributeSet(AttributeSet source)
Creates a new attribute set based on a supplied set of attributes. |
|
AbstractDocument.LeafElement.AbstractDocument.LeafElement(Element parent,
AttributeSet a,
int offs0,
int offs1)
Constructs an element that represents content within the document (has no children). |
Uses of AttributeSet in com.sun.java.swing.text.html |
Classes in com.sun.java.swing.text.html that implement AttributeSet | |
HTMLDocument.BlockElement
An element that represents a structual block of html. |
|
HTMLDocument.RunElement
An element that represents a chunk of text that has a set of html character level attributes assigned to it. |
Methods in com.sun.java.swing.text.html that return AttributeSet | |
AttributeSet | StyleSheet.getDeclaration(String decl)
Translate a CSS declaration to an AttributeSet that represents the CSS declaration. |
AttributeSet | StyleSheet.getViewAttributes(View v)
Fetch a set of attributes to use in the view for displaying. |
AttributeSet | StyleSheet.translateHTMLToCSS(AttributeSet htmlAttrSet)
Convert a set of html attributes to an equivalent set of css attributes. |
AttributeSet | ParagraphView.getAttributes()
Fetches the attributes to use when rendering. |
abstract AttributeSet | HTMLDocument.Iterator.getAttributes()
Fetch the attributes for this tag. |
AttributeSet | HTMLDocument.RunElement.getResolveParent()
Gets the resolving parent. |
AttributeSet | HTMLDocument.BlockElement.getResolveParent()
Gets the resolving parent. |
AttributeSet | BlockView.getAttributes()
Fetches the attributes to use when rendering. |
AttributeSet | InlineView.getAttributes()
Fetches the attributes to use when rendering. |
Methods in com.sun.java.swing.text.html with parameters of type AttributeSet | |
Font | StyleSheet.getFont(AttributeSet a)
Fetch the font to use for the given set of attributes. |
Color | StyleSheet.getForeground(AttributeSet a)
Takes a set of attributes and turn it into a foreground color specification. |
Color | StyleSheet.getBackground(AttributeSet a)
Takes a set of attributes and turn it into a background color specification. |
StyleSheet.BoxPainter | StyleSheet.getBoxPainter(AttributeSet a)
Fetch the box formatter to use for the given set of css attributes. |
StyleSheet.ListPainter | StyleSheet.getListPainter(AttributeSet a)
Fetch the list formatter to use for the given set of css attributes. |
AttributeSet | StyleSheet.translateHTMLToCSS(AttributeSet htmlAttrSet)
Convert a set of html attributes to an equivalent set of css attributes. |
protected void | HTMLWriter.writeAttributes(AttributeSet attr)
Writes out the attribute set. |
protected boolean | HTMLWriter.isBlockTag(AttributeSet attr)
Determines if the HTML.Tag associated with the element is a block tag. |
protected boolean | HTMLWriter.matchNameAttribute(AttributeSet attr,
HTML.Tag tag)
This method return true if the StyleConstants. |
protected void | HTMLWriter.writeEmbeddedTags(AttributeSet attr)
This method searches for embedded tags in the AttributeSet and writes them out. |
protected void | HTMLWriter.closeOutUnwantedEmbeddedTags(AttributeSet attr)
This method searches the attribute set and for each tag that is stored in the tag vector. |
protected Element | HTMLDocument.createLeafElement(Element parent,
AttributeSet a,
int p0,
int p1)
Creates a document leaf element that directly represents text (doesn't have any children). |
protected Element | HTMLDocument.createBranchElement(Element parent,
AttributeSet a)
Creates a document branch element, that can contain other elements. |
protected void | MinimalHTMLWriter.writeAttributes(AttributeSet attr)
This method writes out all the attributes that are for the following types: StyleConstants. |
protected void | MinimalHTMLWriter.writeHTMLTags(AttributeSet attr)
This method is responsible for generating bold , italics and tags for the text based on its attribute settings. |
protected void | MinimalHTMLWriter.writeNonHTMLAttributes(AttributeSet attr)
This method is responsible for writing out the remaining character level attributes (i,e attributes other than bold italics and underlie) in an html compliant way. |
Constructors in com.sun.java.swing.text.html with parameters of type AttributeSet | |
HTMLDocument.RunElement.HTMLDocument.RunElement(Element parent,
AttributeSet a,
int offs0,
int offs1)
Constructs an element that represents content within the document (has no children). |
|
HTMLDocument.BlockElement.HTMLDocument.BlockElement(Element parent,
AttributeSet a)
Constructs a composite element that initially contains no children. |
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |