public class SinkEventAttributeSet extends Object implements SinkEventAttributes, Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
SinkEventAttributeSet.Semantics
Attribute sets for the semantic attribute.
|
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute| 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, DATETIME, DECORATION, EMAIL, FRAME, HEADERS, HEIGHT, HREF, HREFLANG, HSPACE, ID, ISMAP, LANG, NAME, NOSHADE, NOWRAP, PROFILE, REL, REV, ROWSPAN, RULES, SCOPE, SECTIONS, SEMANTICS, SHAPE, SIZE, SRC, STYLE, SUMMARY, TARGET, TITLE, TYPE, USEMAP, VALIGN, VALUE, VSPACE, WIDTHNameAttribute, ResolveAttribute| Constructor and Description |
|---|
SinkEventAttributeSet()
Constructs a new, empty SinkEventAttributeSet with default size 5.
|
SinkEventAttributeSet(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(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(Object name,
Object value)
Adds an attribute with the given name and value.
|
void |
addAttributes(AttributeSet attributes) |
Object |
clone() |
boolean |
containsAttribute(Object name,
Object value) |
boolean |
containsAttributes(AttributeSet attributes) |
AttributeSet |
copyAttributes() |
boolean |
equals(Object obj) |
Object |
getAttribute(Object key) |
int |
getAttributeCount() |
Enumeration<String> |
getAttributeNames() |
AttributeSet |
getResolveParent() |
int |
hashCode() |
boolean |
isDefined(Object attrName) |
boolean |
isEmpty()
Checks whether the set of attribs is empty.
|
boolean |
isEqual(AttributeSet attr) |
void |
removeAttribute(Object name) |
void |
removeAttributes(AttributeSet attributes) |
void |
removeAttributes(Enumeration<?> names) |
void |
setResolveParent(AttributeSet parent) |
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(String... attributes)
attributes - the specified String array. If the length of this array
is not an even number, an IllegalArgumentException is thrown.public SinkEventAttributeSet(AttributeSet attributes)
attributes - the specified AttributeSet.public SinkEventAttributeSet unmodifiable()
public boolean isEmpty()
public int getAttributeCount()
getAttributeCount in interface AttributeSetpublic boolean isDefined(Object attrName)
isDefined in interface AttributeSetpublic boolean isEqual(AttributeSet attr)
isEqual in interface AttributeSetpublic AttributeSet copyAttributes()
copyAttributes in interface AttributeSetAttributeSet object.public Enumeration<String> getAttributeNames()
getAttributeNames in interface AttributeSetEnumeration object.public Object getAttribute(Object key)
getAttribute in interface AttributeSetpublic boolean containsAttribute(Object name, Object value)
containsAttribute in interface AttributeSetpublic boolean containsAttributes(AttributeSet attributes)
containsAttributes in interface AttributeSetpublic void addAttribute(Object name, Object value)
addAttribute in interface MutableAttributeSetpublic void addAttributes(AttributeSet attributes)
addAttributes in interface MutableAttributeSetpublic void removeAttribute(Object name)
removeAttribute in interface MutableAttributeSetpublic void removeAttributes(Enumeration<?> names)
removeAttributes in interface MutableAttributeSetpublic void removeAttributes(AttributeSet attributes)
removeAttributes in interface MutableAttributeSetattributes - a AttributeSet object.public AttributeSet getResolveParent()
getResolveParent in interface AttributeSetAttributeSet object.public void setResolveParent(AttributeSet parent)
setResolveParent in interface MutableAttributeSetCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.