javax.accessibility

Interface AccessibleExtendedText

public interface AccessibleExtendedText

This interface provides extended text functionality, similar to AccessibleText.

Since: 1.5

See Also: AccessibleText

Field Summary
intATTRIBUTE_RUN
This constant indicates that the retrieved text should consist of a run with identical attributes.
intLINE
This constant indicates that the retrieved text should be a complete line.
Method Summary
RectanglegetTextBounds(int start, int end)
Determines the bounding box of some text held by this object.
StringgetTextRange(int start, int end)
Return a range of text from the underlying object.
AccessibleTextSequencegetTextSequenceAfter(int part, int index)
Return a text sequence from the underlying object.
AccessibleTextSequencegetTextSequenceAt(int part, int index)
Return a text sequence from the underlying object.
AccessibleTextSequencegetTextSequenceBefore(int part, int index)
Return a text sequence from the underlying object.

Field Detail

ATTRIBUTE_RUN

public int ATTRIBUTE_RUN
This constant indicates that the retrieved text should consist of a run with identical attributes.

LINE

public int LINE
This constant indicates that the retrieved text should be a complete line.

Method Detail

getTextBounds

public Rectangle getTextBounds(int start, int end)
Determines the bounding box of some text held by this object.

Parameters: start the starting index end the ending index

Returns: the bounding box

See Also: AccessibleText

getTextRange

public String getTextRange(int start, int end)
Return a range of text from the underlying object.

Parameters: start the starting index end the ending index

getTextSequenceAfter

public AccessibleTextSequence getTextSequenceAfter(int part, int index)
Return a text sequence from the underlying object. The part parameter describes the type of sequence to return; it is one of the constants from {@link AccessibleText} or from this class.

Parameters: part the type of the sequence to return index start of the sequence

getTextSequenceAt

public AccessibleTextSequence getTextSequenceAt(int part, int index)
Return a text sequence from the underlying object. The part parameter describes the type of sequence to return; it is one of the constants from {@link AccessibleText} or from this class.

Parameters: part the type of the sequence to return index start of the sequence

getTextSequenceBefore

public AccessibleTextSequence getTextSequenceBefore(int part, int index)
Return a text sequence from the underlying object. The part parameter describes the type of sequence to return; it is one of the constants from {@link AccessibleText} or from this class.

Parameters: part the type of the sequence to return index end of the sequence