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 |
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 |
SOURCE
An unmodifiable attribute set containing only a source 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, WIDTH
NameAttribute, 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 SOURCE
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 AttributeSet
public boolean isDefined(Object attrName)
isDefined
in interface AttributeSet
public boolean isEqual(AttributeSet attr)
isEqual
in interface AttributeSet
public AttributeSet copyAttributes()
copyAttributes
in interface AttributeSet
AttributeSet
object.public Enumeration<String> getAttributeNames()
getAttributeNames
in interface AttributeSet
Enumeration
object.public Object getAttribute(Object key)
getAttribute
in interface AttributeSet
public boolean containsAttribute(Object name, Object value)
containsAttribute
in interface AttributeSet
public boolean containsAttributes(AttributeSet attributes)
containsAttributes
in interface AttributeSet
public void addAttribute(Object name, Object value)
addAttribute
in interface MutableAttributeSet
public void addAttributes(AttributeSet attributes)
addAttributes
in interface MutableAttributeSet
public void removeAttribute(Object name)
removeAttribute
in interface MutableAttributeSet
public void removeAttributes(Enumeration<?> names)
removeAttributes
in interface MutableAttributeSet
public void removeAttributes(AttributeSet attributes)
removeAttributes
in interface MutableAttributeSet
attributes
- a AttributeSet
object.public AttributeSet getResolveParent()
getResolveParent
in interface AttributeSet
AttributeSet
object.public void setResolveParent(AttributeSet parent)
setResolveParent
in interface MutableAttributeSet
Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.