hades.gui
Class KeyHandler
java.lang.Object
hades.gui.KeyHandler
- public class KeyHandler
- extends java.lang.Object
KeyHandler - concentrates all 'one letter' abbreviations for HADES
editor commands.
Constructor Summary |
KeyHandler(Editor editor)
the default constructor for all KeyHandler objects. |
Method Summary |
void |
keyTyped(java.awt.event.KeyEvent evt)
|
void |
message(java.lang.String msg)
|
void |
msg(java.lang.String s)
|
void |
setMousePosition()
get the current mouse position on the object canvas,
transform to world-coordinates, snap to grid. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
debug
public boolean debug
console
Console console
editor
Editor editor
KeyHandler
public KeyHandler(Editor editor)
- the default constructor for all KeyHandler objects.
The Object 'target' is the object to be modified by this KeyHandler.
Note that other parameter values (like names, event sources, ...)
should be set later on with calls to the corresponding event
dispatcher methods, e.g. mousePressed().
keyTyped
public void keyTyped(java.awt.event.KeyEvent evt)
setMousePosition
public void setMousePosition()
- get the current mouse position on the object canvas,
transform to world-coordinates, snap to grid.
Finally give both positions to the current editor command object.
msg
public void msg(java.lang.String s)
message
public void message(java.lang.String msg)
toString
public java.lang.String toString()