public class SinkEventAttributeSet extends java.lang.Object implements SinkEventAttributes, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static SinkEventAttributes |
BOLD
An unmodifiable attribute set containing only a bold attribute.
|
static SinkEventAttributes |
BOXED
An unmodifiable attribute set containing only a boxed attribute.
|
static SinkEventAttributes |
CENTER
An unmodifiable attribute set containing only a center attribute.
|
static SinkEventAttributes |
ITALIC
An unmodifiable attribute set containing only an italic attribute.
|
static SinkEventAttributes |
JUSTIFY
An unmodifiable attribute set containing only a justify attribute.
|
static SinkEventAttributes |
LEFT
An unmodifiable attribute set containing only a left attribute.
|
static SinkEventAttributes |
LINETHROUGH
An unmodifiable attribute set containing only a linethrough attribute.
|
static SinkEventAttributes |
MONOSPACED
An unmodifiable attribute set containing only a monospaced attribute.
|
static SinkEventAttributes |
OVERLINE
An unmodifiable attribute set containing only an overline attribute.
|
static SinkEventAttributes |
RIGHT
An unmodifiable attribute set containing only a right attribute.
|
static SinkEventAttributes |
UNDERLINE
An unmodifiable attribute set containing only an underline attribute.
|
ABBRV, ALIGN, ALT, AXIS, BGCOLOR, BORDER, CELLPADDING, CELLSPACING, CHARSET, CLASS, COLSPAN, COORDS, DECORATION, EMAIL, FRAME, HEADERS, HEIGHT, HREF, HREFLANG, HSPACE, ID, ISMAP, LANG, NAME, NOSHADE, NOWRAP, PROFILE, REL, REV, ROWSPAN, RULES, SCOPE, SHAPE, SIZE, SRC, STYLE, SUMMARY, TARGET, TITLE, TYPE, USEMAP, VALIGN, VSPACE, WIDTH
Constructor and Description |
---|
SinkEventAttributeSet()
Constructs a new, empty SinkEventAttributeSet with default size 5.
|
SinkEventAttributeSet(javax.swing.text.AttributeSet attributes)
Constructs a new SinkEventAttributeSet with the same attribute name-value
mappings as in the specified AttributeSet.
|
SinkEventAttributeSet(int size)
Constructs a new, empty SinkEventAttributeSet with the specified initial size.
|
SinkEventAttributeSet(java.lang.String[] attributes)
Constructs a new SinkEventAttributeSet with the attribute name-value
mappings as given by the specified String array.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.Object name,
java.lang.Object value)
Adds an attribute with the given name and value.
|
void |
addAttributes(javax.swing.text.AttributeSet attributes) |
java.lang.Object |
clone() |
boolean |
containsAttribute(java.lang.Object name,
java.lang.Object value) |
boolean |
containsAttributes(javax.swing.text.AttributeSet attributes) |
javax.swing.text.AttributeSet |
copyAttributes() |
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getAttribute(java.lang.Object key) |
int |
getAttributeCount() |
java.util.Enumeration<java.lang.String> |
getAttributeNames() |
javax.swing.text.AttributeSet |
getResolveParent() |
int |
hashCode() |
boolean |
isDefined(java.lang.Object attrName) |
boolean |
isEmpty()
Checks whether the set of attribs is empty.
|
boolean |
isEqual(javax.swing.text.AttributeSet attr) |
void |
removeAttribute(java.lang.Object name) |
void |
removeAttributes(javax.swing.text.AttributeSet attributes) |
void |
removeAttributes(java.util.Enumeration<?> names) |
void |
setResolveParent(javax.swing.text.AttributeSet parent) |
java.lang.String |
toString() |
SinkEventAttributeSet |
unmodifiable()
Replace this AttributeSet by an unmodifiable view of itself.
|
public static final SinkEventAttributes UNDERLINE
public static final SinkEventAttributes OVERLINE
public static final SinkEventAttributes LINETHROUGH
public static final SinkEventAttributes BOXED
public static final SinkEventAttributes BOLD
public static final SinkEventAttributes ITALIC
public static final SinkEventAttributes MONOSPACED
public static final SinkEventAttributes LEFT
public static final SinkEventAttributes RIGHT
public static final SinkEventAttributes CENTER
public static final SinkEventAttributes JUSTIFY
public SinkEventAttributeSet()
public SinkEventAttributeSet(int size)
size
- the initial number of attribs.public SinkEventAttributeSet(java.lang.String[] attributes)
attributes
- the specified String array. If the length of this array
is not an even number, an IllegalArgumentException is thrown.public SinkEventAttributeSet(javax.swing.text.AttributeSet attributes)
attributes
- the specified AttributeSet.public SinkEventAttributeSet unmodifiable()
public boolean isEmpty()
public int getAttributeCount()
getAttributeCount
in interface javax.swing.text.AttributeSet
public boolean isDefined(java.lang.Object attrName)
isDefined
in interface javax.swing.text.AttributeSet
public boolean isEqual(javax.swing.text.AttributeSet attr)
isEqual
in interface javax.swing.text.AttributeSet
public javax.swing.text.AttributeSet copyAttributes()
copyAttributes
in interface javax.swing.text.AttributeSet
public java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames
in interface javax.swing.text.AttributeSet
public java.lang.Object getAttribute(java.lang.Object key)
getAttribute
in interface javax.swing.text.AttributeSet
public boolean containsAttribute(java.lang.Object name, java.lang.Object value)
containsAttribute
in interface javax.swing.text.AttributeSet
public boolean containsAttributes(javax.swing.text.AttributeSet attributes)
containsAttributes
in interface javax.swing.text.AttributeSet
public void addAttribute(java.lang.Object name, java.lang.Object value)
addAttribute
in interface javax.swing.text.MutableAttributeSet
public void addAttributes(javax.swing.text.AttributeSet attributes)
addAttributes
in interface javax.swing.text.MutableAttributeSet
public void removeAttribute(java.lang.Object name)
removeAttribute
in interface javax.swing.text.MutableAttributeSet
public void removeAttributes(java.util.Enumeration<?> names)
removeAttributes
in interface javax.swing.text.MutableAttributeSet
public void removeAttributes(javax.swing.text.AttributeSet attributes)
removeAttributes
in interface javax.swing.text.MutableAttributeSet
public javax.swing.text.AttributeSet getResolveParent()
getResolveParent
in interface javax.swing.text.AttributeSet
public void setResolveParent(javax.swing.text.AttributeSet parent)
setResolveParent
in interface javax.swing.text.MutableAttributeSet
public java.lang.Object clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.