public class StyleContext.SmallAttributeSet extends Objectimplements AttributeSet
AttributeSet.CharacterAttribute , AttributeSet.ColorAttribute , AttributeSet.FontAttribute , AttributeSet.ParagraphAttribute NameAttribute, ResolveAttribute| Constructor and Description |
|---|
SmallAttributeSet(AttributeSet
|
SmallAttributeSet(Object
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clones a set of attributes.
|
boolean |
containsAttribute(Object
Checks whether a given attribute name/value is defined.
|
boolean |
containsAttributes(AttributeSet
Checks whether the attribute set contains all of the given attributes.
|
AttributeSet |
copyAttributes()
Copies a set of attributes.
|
boolean |
equals(Object
Compares this object to the specified object.
|
Object |
getAttribute(Object
Gets the value of an attribute.
|
int |
getAttributeCount()
Gets the number of attributes that are defined.
|
Enumeration |
getAttributeNames()
Gets the names of all attributes.
|
AttributeSet |
getResolveParent()
If not overriden, the resolving parent defaults to the parent element.
|
int |
hashCode()
Returns a hashcode for this set of attributes.
|
boolean |
isDefined(Object
Checks whether a given attribute is defined.
|
boolean |
isEqual(AttributeSet
Checks whether two attribute sets are equal.
|
String |
toString()
Returns a string showing the key/value pairs
|
public SmallAttributeSet(Object[] attributes)
public SmallAttributeSet(AttributeSetattrs)
public StringtoString()
public int hashCode()
hashCode in class
Object
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)
public boolean equals(Objectobj)
true if the object is an equivalent set of attributes.
equals in class
Object
obj - the object to compare with.
true if the objects are equal;
false otherwise.
Object.hashCode() ,
HashMap
public Objectclone()
public int getAttributeCount()
getAttributeCount in interface
AttributeSet
AttributeSet.getAttributeCount()
public boolean isDefined(Objectkey)
isDefined in interface
AttributeSet
key - the attribute key
AttributeSet.isDefined(java.lang.Object)
public boolean isEqual(AttributeSetattr)
isEqual in interface
AttributeSet
attr - the attribute set to check against
AttributeSet.isEqual(javax.swing.text.AttributeSet)
public AttributeSetcopyAttributes()
copyAttributes in interface
AttributeSet
AttributeSet.copyAttributes()
public ObjectgetAttribute(Object key)
getAttribute in interface
AttributeSet
key - the attribute name
AttributeSet.getAttribute(java.lang.Object)
public Enumeration<?> getAttributeNames()
getAttributeNames in interface
AttributeSet
AttributeSet.getAttributeNames()
public boolean containsAttribute(Objectname, Object value)
containsAttribute in interface
AttributeSet
name - the attribute name
value - the attribute value
AttributeSet.containsAttribute(java.lang.Object, java.lang.Object)
public boolean containsAttributes(AttributeSetattrs)
containsAttributes in interface
AttributeSet
attrs - the attributes to check
AttributeSet.containsAttributes(javax.swing.text.AttributeSet)
public AttributeSetgetResolveParent()
getResolveParent in interface
AttributeSet
AttributeSet.getResolveParent()