public interface MutableAttributeSet extends AttributeSet
AttributeSet.CharacterAttribute , AttributeSet.ColorAttribute , AttributeSet.FontAttribute , AttributeSet.ParagraphAttribute NameAttribute, ResolveAttribute| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(Object
Creates a new attribute set similar to this one except that it contains an attribute with the given name and value.
|
void |
addAttributes(AttributeSet
Creates a new attribute set similar to this one except that it contains the given attributes and values.
|
void |
removeAttribute(Object
Removes an attribute with the given
name.
|
void |
removeAttributes(AttributeSet
Removes a set of attributes with the given
name.
|
void |
removeAttributes(Enumeration
Removes an attribute set with the given
names.
|
void |
setResolveParent(AttributeSet
Sets the resolving parent.
|
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqualvoid addAttribute(Objectname, Object value)
name - the name
value - the value
void addAttributes(AttributeSetattributes)
attributes - the set of attributes
void removeAttribute(Objectname)
name.
name - the attribute name
void removeAttributes(Enumeration<?> names)
names.
names - the set of names
void removeAttributes(AttributeSetattributes)
name.
attributes - the set of attributes
void setResolveParent(AttributeSetparent)
parent - the parent