public interface KeyTranslator
Controller action command that it represents.| Modifier and Type | Method and Description |
|---|---|
Iterator<String> |
enumeratePressCommands()
Returns an iterator that iterates over the available press commands.
|
Iterator<String> |
enumerateReleaseCommands()
Returns an iterator that iterates over the available release commands.
|
String |
getPressCommand(char ch)
Returns the action command string associated with a key press of the given character,
or
null if there is no associated command. |
String |
getPressCommand(int keyCode)
Returns the action command string associated with a key press of the key corresponding to
the given key code, or
null if there is no associated command. |
String |
getReleaseCommand(char ch)
Returns the action command string associated with a key release of the given character,
or
null if there is no associated command. |
String |
getReleaseCommand(int keyCode)
Returns the action command string associated with a key release of the key corresponding to
the given key code, or
null if there is no associated command. |
long |
getRepeatDelay(char ch)
Returns the delay in milliseconds before generating auto-repeated key press events for the
specified key.
|
long |
getRepeatDelay(int keyCode)
Returns the delay in milliseconds before generating auto-repeated key press events for the
specified key.
|
int |
getRepeatRate(char ch)
Returns the number of times each second that key presses are to be automatically repeated
while the key is held down, or
0 to disable auto-repeat for the key. |
int |
getRepeatRate(int keyCode)
Returns the number of times each second that key presses are to be automatically repeated
while the key is held down, or
0 to disable auto-repeat for the key. |
boolean |
hasCommand(char ch)
Returns whether there is an action command for the key corresponding to the given character
in the case of a keyTyped event corresponding to it.
|
boolean |
hasCommand(int keyCode)
Returns whether there is an action command for the key corresponding to the given keycode.
|
boolean hasCommand(int keyCode)
boolean hasCommand(char ch)
String getPressCommand(int keyCode)
null if there is no associated command.String getPressCommand(char ch)
null if there is no associated command.String getReleaseCommand(int keyCode)
null if there is no associated command.String getReleaseCommand(char ch)
null if there is no associated command.int getRepeatRate(int keyCode)
0 to disable auto-repeat for the key.int getRepeatRate(char ch)
0 to disable auto-repeat for the key.long getRepeatDelay(int keyCode)
long getRepeatDelay(char ch)
Iterator<String> enumeratePressCommands()
Copyright © 2015. All rights reserved.