public class CompositionTextManager
extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COMPOSING_UNDERBAR_HEIGHT |
Constructor and Description |
---|
CompositionTextManager(JEditTextArea textArea)
Create text manager class with a textarea.
|
Modifier and Type | Method and Description |
---|---|
void |
beginCompositionText(AttributedCharacterIterator text,
int committed_count)
Called when a user begins input from input method.
|
void |
endCompositionText(AttributedCharacterIterator text,
int committed_count)
Called when a user fixed text from input method or delete all
composition text.
|
AttributedCharacterIterator |
getCommittedText(int beginIndex,
int endIndex) |
int |
getInsertPositionOffset() |
boolean |
getIsInputProcess()
Get this text manager is whether in input process or not.
|
Rectangle |
getTextLocation() |
void |
insertFullWidthSpace()
Insert full width space
|
void |
processCompositionText(AttributedCharacterIterator text,
int committed_count)
Called when a user processing input characters and
select candidates from input method.
|
public static final int COMPOSING_UNDERBAR_HEIGHT
public CompositionTextManager(JEditTextArea textArea)
textArea
- texarea component for PDE.public boolean getIsInputProcess()
public void insertFullWidthSpace()
public void beginCompositionText(AttributedCharacterIterator text, int committed_count)
text
- Text from InputMethodEvent.committed_count
- Numbers of committed characters in text.public void processCompositionText(AttributedCharacterIterator text, int committed_count)
text
- Text from InputMethodEvent.committed_count
- Numbers of committed characters in text.public void endCompositionText(AttributedCharacterIterator text, int committed_count)
text
- Text from InputMethodEvent.committed_count
- Numbers of committed characters in text.public Rectangle getTextLocation()
public AttributedCharacterIterator getCommittedText(int beginIndex, int endIndex)
public int getInsertPositionOffset()