Home » openjdk-7 » javax » swing » text » [javadoc | source]
public class: StyleContext.SmallAttributeSet [javadoc | source]

All Implemented Interfaces:

This class holds a small number of attributes in an array. The storage format is key, value, key, value, etc. The size of the set is the length of the array divided by two. By default, this is the class that will be used to store attributes when held in the compact sharable form.
Field Summary
 Object[] attributes     
 AttributeSet resolveParent     
 public SmallAttributeSet(Object[] attributes) 
 public SmallAttributeSet(AttributeSet attrs) 
Method from javax.swing.text.StyleContext$SmallAttributeSet Summary:
clone,   containsAttribute,   containsAttributes,   copyAttributes,   equals,   getAttribute,   getAttributeCount,   getAttributeNames,   getLocalAttribute,   getResolveParent,   hashCode,   isDefined,   isEqual,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.StyleContext$SmallAttributeSet Detail:
 public Object clone() 
    Clones a set of attributes. Since the set is immutable, a clone is basically the same set.
 public boolean containsAttribute(Object name,
    Object value) 
    Checks whether a given attribute name/value is defined.
 public boolean containsAttributes(AttributeSet attrs) 
    Checks whether the attribute set contains all of the given attributes.
 public AttributeSet copyAttributes() 
    Copies a set of attributes.
 public boolean equals(Object obj) 
    Compares this object to the specifed object. The result is true if the object is an equivalent set of attributes.
 public Object getAttribute(Object key) 
    Gets the value of an attribute.
 public int getAttributeCount() 
    Gets the number of attributes that are defined.
 public Enumeration<?> getAttributeNames() 
    Gets the names of all attributes.
 Object getLocalAttribute(Object nm) 
 public AttributeSet getResolveParent() 
    If not overriden, the resolving parent defaults to the parent element.
 public int hashCode() 
    Returns a hashcode for this set of attributes.
 public boolean isDefined(Object key) 
    Checks whether a given attribute is defined.
 public boolean isEqual(AttributeSet attr) 
    Checks whether two attribute sets are equal.
 public String toString() 
    Returns a string showing the key/value pairs