public class InputMethodSupport
extends Object
implements InputMethodRequests, InputMethodListener
| Constructor and Description |
|---|
InputMethodSupport(JEditTextArea textArea) |
| Modifier and Type | Method and Description |
|---|---|
AttributedCharacterIterator |
cancelLatestCommittedText(AttributedCharacterIterator.Attribute[] attributes) |
void |
caretPositionChanged(InputMethodEvent event) |
AttributedCharacterIterator |
getCommittedText(int beginIndex,
int endIndex,
AttributedCharacterIterator.Attribute[] attributes) |
int |
getCommittedTextLength() |
int |
getInsertPositionOffset() |
TextHitInfo |
getLocationOffset(int x,
int y) |
AttributedCharacterIterator |
getSelectedText(AttributedCharacterIterator.Attribute[] attributes) |
Rectangle |
getTextLocation(TextHitInfo offset) |
void |
inputMethodTextChanged(InputMethodEvent event)
Handles events from InputMethod.
|
public InputMethodSupport(JEditTextArea textArea)
public Rectangle getTextLocation(TextHitInfo offset)
getTextLocation in interface InputMethodRequestspublic TextHitInfo getLocationOffset(int x,
int y)
getLocationOffset in interface InputMethodRequestspublic int getInsertPositionOffset()
getInsertPositionOffset in interface InputMethodRequestspublic AttributedCharacterIterator getCommittedText(int beginIndex,
int endIndex,
AttributedCharacterIterator.Attribute[] attributes)
getCommittedText in interface InputMethodRequestspublic int getCommittedTextLength()
getCommittedTextLength in interface InputMethodRequestspublic AttributedCharacterIterator cancelLatestCommittedText(AttributedCharacterIterator.Attribute[] attributes)
cancelLatestCommittedText in interface InputMethodRequestspublic AttributedCharacterIterator getSelectedText(AttributedCharacterIterator.Attribute[] attributes)
getSelectedText in interface InputMethodRequestspublic void inputMethodTextChanged(InputMethodEvent event)
inputMethodTextChanged in interface InputMethodListenerevent - event from Input Method.public void caretPositionChanged(InputMethodEvent event)
caretPositionChanged in interface InputMethodListener