public static interface AbstractDocument.AttributeContext
getAttributeContext should be implemented to return the object responsible for implementing the desired compression technique.
StyleContext
| Modifier and Type | Method and Description |
|---|---|
AttributeSet |
addAttribute(AttributeSet
Adds an attribute to the given set, and returns the new representative set.
|
AttributeSet |
addAttributes(AttributeSet
Adds a set of attributes to the element.
|
AttributeSet |
getEmptySet()
Fetches an empty AttributeSet.
|
void |
reclaim(AttributeSet
Reclaims an attribute set.
|
AttributeSet |
removeAttribute(AttributeSet
Removes an attribute from the set.
|
AttributeSet |
removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
AttributeSet |
removeAttributes(AttributeSet
Removes a set of attributes for the element.
|
AttributeSetaddAttribute(AttributeSet old, Object name, Object value)
old - the old attribute set
name - the non-null attribute name
value - the attribute value
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)
AttributeSetaddAttributes(AttributeSet old, AttributeSet attr)
old - the old attribute set
attr - the attributes to add
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)
AttributeSetremoveAttribute(AttributeSet old, Object name)
old - the old attribute set
name - the non-null attribute name
MutableAttributeSet.removeAttribute(java.lang.Object)
AttributeSetremoveAttributes(AttributeSet old, Enumeration <?> names)
old - the old attribute set
names - the attribute names
MutableAttributeSet.removeAttributes(java.util.Enumeration<?>)
AttributeSetremoveAttributes(AttributeSet old, AttributeSet attrs)
old - the old attribute set
attrs - the attributes
MutableAttributeSet.removeAttributes(java.util.Enumeration<?>)
AttributeSetgetEmptySet()
void reclaim(AttributeSeta)
a - the attribute set to reclaim