javax.swing
protected class JLabel.AccessibleJLabel extends JComponent.AccessibleJComponent implements AccessibleText, AccessibleExtendedComponent
JLabel
component.
Method Summary | |
---|---|
String | getAccessibleName()
Returns the accessible name.
|
AccessibleRole | getAccessibleRole()
Returns the accessible role for the JLabel component.
|
String | getAfterIndex(int part, int index)
Returns the character, word or sentence after the specified index. |
String | getAtIndex(int part, int index)
Returns the character, word or sentence at the specified index. |
String | getBeforeIndex(int part, int index)
Returns the character, word or sentence before the specified index. |
int | getCaretPosition()
Returns the caret position. |
AttributeSet | getCharacterAttribute(int index)
Returns an {@link AttributeSet} that reflects the text attributes of
the specified character. |
Rectangle | getCharacterBounds(int index)
Returns the bounding box of the character at the specified index.
|
int | getCharCount()
Returns the number of characters that are displayed by the JLabel.
|
int | getIndexAtPoint(Point point)
Returns the index of the character that is located at the specified
point.
|
String | getSelectedText()
Returns the selected text. |
int | getSelectionEnd()
Returns the end index of the selected text.
|
int | getSelectionStart()
Returns the start index of the selected text.
|
Returns: The accessible name.
JLabel
component.
Returns: {@link AccessibleRole#LABEL}.
part
parameter determines what is returned, the character,
word or sentence after the index.
Parameters: part one of {@link AccessibleText#CHARACTER}, {@link AccessibleText#WORD} or {@link AccessibleText#SENTENCE}, specifying what is returned index the index
Returns: the character, word or sentence after index
part
parameter determines what is returned, the character,
word or sentence after the index.
Parameters: part one of {@link AccessibleText#CHARACTER}, {@link AccessibleText#WORD} or {@link AccessibleText#SENTENCE}, specifying what is returned index the index
Returns: the character, word or sentence after index
part
parameter determines what is returned, the character,
word or sentence before the index.
Parameters: part one of {@link AccessibleText#CHARACTER}, {@link AccessibleText#WORD} or {@link AccessibleText#SENTENCE}, specifying what is returned index the index
Returns: the character, word or sentence before index
Returns: the caret position
AttributeSet
here, because JLabels don't support text
attributes (at least not yet).
Parameters: index the index of the character
Returns: an {@link AttributeSet} that reflects the text attributes of the specified character
Parameters: index the index of the character that we return the bounds for
Returns: the bounding box of the character at the specified index
Returns: the number of characters that are displayed by the JLabel
Parameters: point the location that we lookup the character for
Returns: the index of the character that is located at the specified point
Returns: null
because JLabels cannot have selected text
Returns: the end index of the selected text
Returns: the start index of the selected text