Methods Summary |
---|
public boolean | containsAttribute(java.lang.Object name, java.lang.Object value)Returns {@code true} if this set defines an attribute with the same
name and an equal value. If such an attribute is not found locally,
it is searched through in the resolving parent hierarchy.
|
public boolean | containsAttributes(javax.swing.text.AttributeSet attributes)Returns {@code true} if this set defines all the attributes from the
given set with equal values. If an attribute is not found locally,
it is searched through in the resolving parent hierarchy.
|
public javax.swing.text.AttributeSet | copyAttributes()Returns an attribute set that is guaranteed not
to change over time.
|
public java.lang.Object | getAttribute(java.lang.Object key)Fetches the value of the given attribute. If the value is not found
locally, the search is continued upward through the resolving
parent (if one exists) until the value is either
found or there are no more parents. If the value is not found,
null is returned.
|
public int | getAttributeCount()Returns the number of attributes that are defined locally in this set.
Attributes that are defined in the parent set are not included.
|
public java.util.Enumeration | getAttributeNames()Returns an enumeration over the names of the attributes that are
defined locally in the set. Names of attributes defined in the
resolving parent, if any, are not included. The values of the
Enumeration may be anything and are not constrained to
a particular Object type.
This method never returns {@code null}. For a set with no attributes, it
returns an empty {@code Enumeration}.
|
public javax.swing.text.AttributeSet | getResolveParent()Gets the resolving parent.
|
public boolean | isDefined(java.lang.Object attrName)Checks whether the named attribute has a value specified in
the set without resolving through another attribute
set.
|
public boolean | isEqual(javax.swing.text.AttributeSet attr)Determines if the two attribute sets are equivalent.
|