API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. SimpleAttributeSet View Source
Author(s)
Tim Prinzing
Since
Version
1.42 11/17/05
Serial
Hierarchy
 Object
      SimpleAttributeSet
Implements
 MutableAttributeSet
 Serializable
 Cloneable
Subclasses
Description
public class SimpleAttributeSet
  A straightforward implementation of MutableAttributeSet using a hash table.
See also:   
Constructors
public SimpleAttributeSet ()
Creates a new attribute set.
public SimpleAttributeSet (AttributeSet source)
  Creates a new attribute set based on a supplied set of attributes.
private SimpleAttributeSet (Hashtable table)
Methods
Hide/Show inherited methods
public void addAttribute (Object name, Object value) [Specified in MutableAttributeSet]
  Adds an attribute to the list.
public void addAttributes (AttributeSet attributes) [Specified in MutableAttributeSet]
  Adds a set of attributes to the list.
public Object clone ()
  Clones a set of attributes.
public boolean containsAttribute (Object name, Object value)
  Checks whether the attribute list contains a specified attribute name/value pair.
public boolean containsAttributes (AttributeSet attributes)
  Checks whether the attribute list contains all the specified name/value pairs.
public AttributeSet copyAttributes ()
  Makes a copy of the attributes.
public boolean equals (Object obj)
  Compares this object to the specified object.
public Object getAttribute (Object name)
  Gets the value of an attribute.
public int getAttributeCount ()
  Gets a count of the number of attributes.
public Enumeration<Object> getAttributeNames ()
  Gets the names of the attributes in the set.
public AttributeSet getResolveParent ()
  Gets the resolving parent.
public int hashCode ()
  Returns a hashcode for this set of attributes.
public boolean isDefined (Object attrName)
  Tells whether a given attribute is defined.
public boolean isEmpty ()
  Checks whether the set of attributes is empty.
public boolean isEqual (AttributeSet attr)
  Compares two attribute sets.
public void removeAttribute (Object name) [Specified in MutableAttributeSet]
  Removes an attribute from the list.
public void removeAttributes (AttributeSet attributes) [Specified in MutableAttributeSet]
  Removes a set of attributes from the list.
public void removeAttributes (Enumeration<Object> names) [Specified in MutableAttributeSet]
  Removes a set of attributes from the list.
public void setResolveParent (AttributeSet parent) [Specified in MutableAttributeSet]
  Sets the resolving parent.
public String toString ()
  Converts the attribute set to a String.
Fields
Hide/Show inherited fields
publicfinalstatic AttributeSet EMPTY
An empty attribute set.
publicfinalstatic Object NameAttribute [Inherited From MutableAttributeSet]
Attribute name used to name the collection of attributes.
publicfinalstatic Object ResolveAttribute [Inherited From MutableAttributeSet]
Attribute name used to identify the resolving parent set of attributes, if one is defined.
Nested Classes
  SimpleAttributeSet.EmptyAttributeSet
An AttributeSet this is always empty.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar