java.text

Class Annotation

public class Annotation extends Object

This class is used as a wrapper for a text attribute object. Annotation objects are associated with a specific range of text. Changing either the text range or the underlying text invalidates the object.
Constructor Summary
Annotation(Object attrib)
This method initializes a new instance of Annotation to wrapper the specified text attribute object.
Method Summary
ObjectgetValue()
This method returns the text attribute object this Annotation instance is wrappering.
StringtoString()
This method returns a String representation of this object.

Constructor Detail

Annotation

public Annotation(Object attrib)
This method initializes a new instance of Annotation to wrapper the specified text attribute object.

Parameters: attrib The text attribute Object to wrapper.

Method Detail

getValue

public Object getValue()
This method returns the text attribute object this Annotation instance is wrappering.

Returns: The text attribute object for this Annotation.

toString

public String toString()
This method returns a String representation of this object.

Returns: This object as a String.