javax.accessibility
Interface AccessibleExtendedText


public interface AccessibleExtendedText

This interface provides extended text functionality, similar to AccessibleText.

Since:
1.5
See Also:
AccessibleText

Field Summary
static int ATTRIBUTE_RUN
          This constant indicates that the retrieved text should consist of a run with identical attributes.
static int LINE
          This constant indicates that the retrieved text should be a complete line.
 
Method Summary
 Rectangle getTextBounds(int start, int end)
          Determines the bounding box of some text held by this object.
 String getTextRange(int start, int end)
          Return a range of text from the underlying object.
 AccessibleTextSequence getTextSequenceAfter(int part, int index)
          Return a text sequence from the underlying object.
 AccessibleTextSequence getTextSequenceAt(int part, int index)
          Return a text sequence from the underlying object.
 AccessibleTextSequence getTextSequenceBefore(int part, int index)
          Return a text sequence from the underlying object.
 

Field Detail

LINE

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

See Also:
Constant Field Values

ATTRIBUTE_RUN

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

See Also:
Constant Field Values
Method Detail

getTextBounds

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.getCharacterBounds(int)

getTextRange

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

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 AccessibleText or from this class.

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

getTextSequenceAt

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 AccessibleText or from this class.

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

getTextSequenceBefore

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 AccessibleText or from this class.

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