Package Summary  Overview Summary

class:AccessibleExtendedText [NONE]

field:LINE [NONE]

field:ATTRIBUTE_RUN [NONE]

method:getTextRange(int, int) [NONE]

  • getTextRange

    String getTextRange​(int startIndex,
                        int endIndex)
    Returns the text between two indices
    Parameters:
    startIndex - the start index in the text
    endIndex - the end index in the text
    Returns:
    the text string if the indices are valid. Otherwise, null is returned.

method:getTextSequenceAt(int, int) [NONE]

  • getTextSequenceAt

    AccessibleTextSequence getTextSequenceAt​(int part,
                                             int index)
    Returns the AccessibleTextSequence at a given index.
    Parameters:
    part - the CHARACTER, WORD, SENTENCE, LINE or ATTRIBUTE_RUN to retrieve
    index - an index within the text
    Returns:
    an AccessibleTextSequence specifying the text if part and index are valid. Otherwise, null is returned.
    See Also:
    AccessibleText.CHARACTER, AccessibleText.WORD, AccessibleText.SENTENCE

method:getTextSequenceAfter(int, int) [NONE]

  • getTextSequenceAfter

    AccessibleTextSequence getTextSequenceAfter​(int part,
                                                int index)
    Returns the AccessibleTextSequence after a given index.
    Parameters:
    part - the CHARACTER, WORD, SENTENCE, LINE or ATTRIBUTE_RUN to retrieve
    index - an index within the text
    Returns:
    an AccessibleTextSequence specifying the text if part and index are valid. Otherwise, null is returned.
    See Also:
    AccessibleText.CHARACTER, AccessibleText.WORD, AccessibleText.SENTENCE

method:getTextSequenceBefore(int, int) [NONE]

  • getTextSequenceBefore

    AccessibleTextSequence getTextSequenceBefore​(int part,
                                                 int index)
    Returns the AccessibleTextSequence before a given index.
    Parameters:
    part - the CHARACTER, WORD, SENTENCE, LINE or ATTRIBUTE_RUN to retrieve
    index - an index within the text
    Returns:
    an AccessibleTextSequence specifying the text if part and index are valid. Otherwise, null is returned.
    See Also:
    AccessibleText.CHARACTER, AccessibleText.WORD, AccessibleText.SENTENCE

method:getTextBounds(int, int) [NONE]

  • getTextBounds

    Rectangle getTextBounds​(int startIndex,
                            int endIndex)
    Returns the bounding rectangle of the text between two indices.
    Parameters:
    startIndex - the start index in the text
    endIndex - the end index in the text
    Returns:
    the bounding rectangle of the text if the indices are valid. Otherwise, null is returned.