java.lang.Object | |
↳ | javax.swing.text.StyleContext.SmallAttributeSet |
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.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clones a set of attributes.
| |||||||||||
Checks whether a given attribute name/value is defined.
| |||||||||||
Checks whether the attribute set contains all of
the given attributes.
| |||||||||||
Copies a set of attributes.
| |||||||||||
Compares this object to the specifed object.
| |||||||||||
Gets the value of an attribute.
| |||||||||||
Gets the number of attributes that are defined.
| |||||||||||
Gets the names of all attributes.
| |||||||||||
If not overriden, the resolving parent defaults to
the parent element.
| |||||||||||
Returns a hashcode for this set of attributes.
| |||||||||||
Checks whether a given attribute is defined.
| |||||||||||
Checks whether two attribute sets are equal.
| |||||||||||
Returns a string showing the key/value pairs
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Clones a set of attributes. Since the set is immutable, a clone is basically the same set.
Checks whether a given attribute name/value is defined.
name | the attribute name |
---|---|
value | the attribute value |
Checks whether the attribute set contains all of the given attributes.
attrs | the attributes to check |
---|
Compares this object to the specifed object.
The result is true
if the object is an equivalent
set of attributes.
obj | the object to compare with. |
---|
true
if the objects are equal;
false
otherwise.
Gets the value of an attribute.
key | the attribute name |
---|
Gets the number of attributes that are defined.
If not overriden, the resolving parent defaults to the parent element.
Returns a hashcode for this set of attributes.
Checks whether a given attribute is defined.
key | the attribute key |
---|
Checks whether two attribute sets are equal.
attr | the attribute set to check against |
---|
Returns a string showing the key/value pairs