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 InputMethodRequests
public TextHitInfo getLocationOffset(int x, int y)
getLocationOffset
in interface InputMethodRequests
public int getInsertPositionOffset()
getInsertPositionOffset
in interface InputMethodRequests
public AttributedCharacterIterator getCommittedText(int beginIndex, int endIndex, AttributedCharacterIterator.Attribute[] attributes)
getCommittedText
in interface InputMethodRequests
public int getCommittedTextLength()
getCommittedTextLength
in interface InputMethodRequests
public AttributedCharacterIterator cancelLatestCommittedText(AttributedCharacterIterator.Attribute[] attributes)
cancelLatestCommittedText
in interface InputMethodRequests
public AttributedCharacterIterator getSelectedText(AttributedCharacterIterator.Attribute[] attributes)
getSelectedText
in interface InputMethodRequests
public void inputMethodTextChanged(InputMethodEvent event)
inputMethodTextChanged
in interface InputMethodListener
event
- event from Input Method.public void caretPositionChanged(InputMethodEvent event)
caretPositionChanged
in interface InputMethodListener