A straightforward implementation of MutableAttributeSet using a
hash table.
A straightforward implementation of MutableAttributeSet using a
hash table.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans package.
Please see XMLEncoder.
Clones a set of attributes.
Returns:
the new set of attributes
public boolean
containsAttribute
(Object name, Object value)
Checks whether the attribute list contains a
specified attribute name/value pair.
Checks whether the attribute list contains a specified attribute name/value pair.
Returns:
true if the name/value pair is in the list
Parameters: - name - the name
- value - the value
public boolean
containsAttributes
(AttributeSet attributes)
Checks whether the attribute list contains all the
specified name/value pairs.
Checks whether the attribute list contains all the specified name/value pairs.
Returns:
true if the list contains all the name/value pairs
Parameters: - attributes - the attribute list
Compares this object to the specified object. The result is true if the object is an equivalent set of attributes.
Returns:true if the objects are equal;
false otherwise
Parameters: - obj - the object to compare this attribute set with
Gets the resolving parent. This is the set of attributes to resolve through if an attribute isn't defined locally. This is null if there are no other sets of attributes to resolve through.
Returns:
the parent
public int
hashCode
()
Returns a hashcode for this set of attributes.
Returns a hashcode for this set of attributes.
Returns:
a hashcode value for this set of attributes.