class Scene.InputMethodRequestsDelegate extends java.lang.Object implements ExtendedInputMethodRequests
Constructor and Description |
---|
InputMethodRequestsDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
cancelLatestCommittedText()
Gets the latest committed text from the text editing node and removes
it from the node's text body.
|
private InputMethodRequests |
getClientRequests() |
java.lang.String |
getCommittedText(int begin,
int end)
Gets the entire text contained in the text editing node except the uncommitted
text.
|
int |
getCommittedTextLength()
Gets the length of the entire text contained in the text editing node except
the uncommitted text.
|
int |
getInsertPositionOffset()
Returns the offset of the insert position in the committed text contained
in the text editing node.
|
int |
getLocationOffset(int x,
int y)
Gets the offset within the composed text for the specified absolute x
and y coordinates on the screen.
|
java.lang.String |
getSelectedText()
Gets the currently selected text from the text editing node.
|
Point2D |
getTextLocation(int offset)
Gets the location of a specified offset in the current composed text,
or of the selection in committed text.
|
public Point2D getTextLocation(int offset)
InputMethodRequests
getTextLocation
in interface InputMethodRequests
offset
- the offset within the composed text, if there is
composed text; null otherwisepublic int getLocationOffset(int x, int y)
InputMethodRequests
getLocationOffset
in interface InputMethodRequests
x
- the absolute x coordinate on screeny
- the absolute y coordinate on screenpublic void cancelLatestCommittedText()
InputMethodRequests
cancelLatestCommittedText
in interface InputMethodRequests
public java.lang.String getSelectedText()
InputMethodRequests
getSelectedText
in interface InputMethodRequests
public int getInsertPositionOffset()
ExtendedInputMethodRequests
getInsertPositionOffset
in interface ExtendedInputMethodRequests
public java.lang.String getCommittedText(int begin, int end)
ExtendedInputMethodRequests
getCommittedText
in interface ExtendedInputMethodRequests
begin
- the index of the first characterend
- the index of the character following the last characterpublic int getCommittedTextLength()
ExtendedInputMethodRequests
getCommittedTextLength
in interface ExtendedInputMethodRequests
private InputMethodRequests getClientRequests()