public class Annotation extends Object
Wrapping the attribute value into an Annotation object guarantees that adjacent text runs don't get merged even if the attribute values are equal, and indicates to text containers that the attribute should be discarded if the underlying text is modified.
AttributedCharacterIterator
Constructor and Description |
---|
Annotation(Object value)
Constructs an annotation record with the given value, which
may be null.
|
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
Returns the value of the attribute, which may be null.
|
String |
toString()
Returns the String representation of this Annotation.
|
public Annotation(Object value)
value
- the value of the attributepublic Object getValue()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.