Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.text.SimpleAttributeSet
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Field Summary | |
static AttributeSet | EMPTY
An empty attribute set. |
Constructor Summary | |
SimpleAttributeSet()
Creates a new attribute set. |
|
SimpleAttributeSet(AttributeSet source)
Creates a new attribute set based on a supplied set of attributes. |
Method Summary | |
void | addAttribute(java.lang.Object name,
java.lang.Object value)
Adds an attribute to the list. |
void | addAttributes(AttributeSet attributes)
Adds a set of attributes to the list. |
java.lang.Object | clone()
Clones a set of attributes. |
boolean | containsAttribute(java.lang.Object name,
java.lang.Object value)
Checks whether the attribute list contains a specified attribute name/value pair. |
boolean | containsAttributes(AttributeSet attributes)
Checks whether the attribute list contains all the specified name/value pairs. |
AttributeSet | copyAttributes()
Makes a copy of the attributes. |
boolean | equals(java.lang.Object obj)
Compares this object to the specifed object. |
int | getAttributeCount()
Gets a count of the number of attributes. |
java.util.Enumeration | getAttributeNames()
Gets the names of the attributes in the set. |
java.lang.Object | getAttribute(java.lang.Object name)
Gets the value of an attribute. |
AttributeSet | getResolveParent()
Gets the resolving parent. |
int | hashCode()
Returns a hashcode for this set of attributes. |
boolean | isDefined(java.lang.Object attrName)
Tells whether a given attribute is defined. |
boolean | isEmpty()
Checks whether the set of attributes is empty. |
boolean | isEqual(AttributeSet attr)
Compares two attribute sets. |
void | removeAttribute(java.lang.Object name)
Removes an attribute from the list. |
void | removeAttributes(java.util.Enumeration names)
Removes a set of attributes from the list. |
void | removeAttributes(AttributeSet attributes)
Removes a set of attributes from the list. |
void | setResolveParent(AttributeSet parent)
Sets the resolving parent. |
java.lang.String | toString()
Converts the attribute set to a String. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
public static final AttributeSet EMPTY
Constructor Detail |
public SimpleAttributeSet()
public SimpleAttributeSet(AttributeSet source)
source
- the set of attributesMethod Detail |
public boolean isEmpty()
public int getAttributeCount()
public boolean isDefined(java.lang.Object attrName)
attrName
- the attribute namepublic boolean isEqual(AttributeSet attr)
attr
- the second attribute setpublic AttributeSet copyAttributes()
public java.util.Enumeration getAttributeNames()
public java.lang.Object getAttribute(java.lang.Object name)
name
- the attribute namepublic boolean containsAttribute(java.lang.Object name, java.lang.Object value)
name
- the name
value
- the valuepublic boolean containsAttributes(AttributeSet attributes)
attributes
- the attribute listpublic void addAttribute(java.lang.Object name, java.lang.Object value)
name
- the attribute name
value
- the attribute valuepublic void addAttributes(AttributeSet attributes)
attributes
- the set of attributes to addpublic void removeAttribute(java.lang.Object name)
name
- the attribute namepublic void removeAttributes(java.util.Enumeration names)
names
- the set of names to removepublic void removeAttributes(AttributeSet attributes)
attributes
- the set of attributes to removepublic AttributeSet getResolveParent()
public void setResolveParent(AttributeSet parent)
parent
- the parentpublic java.lang.Object clone()
public int hashCode()
public boolean equals(java.lang.Object obj)
true
if and only if the argument is not
null
and is a Font
object with the same
name, style, and point size as this font.
obj
- the object to compare this font with.true
if the objects are equal;
false
otherwise.public java.lang.String toString()
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |