javax.accessibility
public interface AccessibleExtendedText
AccessibleText
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final int LINE
static final int ATTRIBUTE_RUN
Rectangle getTextBounds(int start, int end)
start
- the starting indexend
- the ending indexAccessibleText.getCharacterBounds(int)
String getTextRange(int start, int end)
start
- the starting indexend
- the ending indexAccessibleTextSequence getTextSequenceAfter(int part, int index)
AccessibleText
or from this
class.part
- the type of the sequence to returnindex
- start of the sequenceAccessibleTextSequence getTextSequenceAt(int part, int index)
AccessibleText
or from this
class.part
- the type of the sequence to returnindex
- start of the sequenceAccessibleTextSequence getTextSequenceBefore(int part, int index)
AccessibleText
or from this
class.part
- the type of the sequence to returnindex
- end of the sequence