public void
addAttribute
(Object name, Object value)
Creates a new attribute set similar to this one except that it contains
an attribute with the given name and value.
Creates a new attribute set similar to this one except that it contains an attribute with the given name and value. The object must be immutable, or not mutated by any client.
Parameters: - name - the name
- value - the value
public void
addAttributes
(AttributeSet attributes)
Creates a new attribute set similar to this one except that it contains
the given attributes and values.
Creates a new attribute set similar to this one except that it contains the given attributes and values.
Parameters: - attributes - the set of attributes