|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectguk.im.KeyboardMap
public class KeyboardMap
A virtual keyboard map. It uses its own thread do udate the display.
Nested Class Summary | |
---|---|
class |
KeyboardMap.KeyGUI
|
Constructor Summary | |
---|---|
KeyboardMap(GateIM im,
LocaleHandler handler,
State state)
Builds the keyboard map. |
Method Summary | |
---|---|
void |
addJob(Object job)
Adds a job to the job list of the thread. |
protected void |
fixShape()
|
protected KeyboardMap.KeyGUI |
guiForKey(Key key)
Gets the gui that corresponds to a Key object. |
void |
run()
The run method for the thread responsible for updating the display. |
void |
setAlt(boolean alt)
Is the Alt key pressed? |
void |
setCtrl(boolean ctrl)
Is the Ctrl key pressed? |
void |
setShift(boolean shift)
Is the Shift key pressed? |
protected void |
update()
Does th actual update. |
void |
update(LocaleHandler newHandler,
State newState)
Updates the keyboard map for a new Locale or a new state of the current locale handler. |
protected void |
updateLabels()
Updates the virtual keyboard to reflect the current state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyboardMap(GateIM im, LocaleHandler handler, State state)
im
- the input methodhandler
- the active Locale handlerstate
- the state of the handler.Method Detail |
---|
public void run()
run
in interface Runnable
public void addJob(Object job)
String
or an InputEvent
The string can be one of
job
- public void update(LocaleHandler newHandler, State newState)
newHandler
- newState
- protected void update()
protected void updateLabels()
protected void fixShape()
protected KeyboardMap.KeyGUI guiForKey(Key key)
key
- public void setShift(boolean shift)
shift
- public void setAlt(boolean alt)
alt
- public void setCtrl(boolean ctrl)
ctrl
-
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |