org.jhotdraw.standard
Class StandardDrawingView.DrawingViewKeyListener
java.lang.Object
org.jhotdraw.standard.StandardDrawingView.DrawingViewKeyListener
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.KeyListener
- Enclosing class:
- StandardDrawingView
- public class StandardDrawingView.DrawingViewKeyListener
- extends java.lang.Object
- implements java.awt.event.KeyListener
Method Summary |
protected Command |
createDeleteCommand()
|
protected void |
handleCursorKey(int key)
Handles cursor keys by moving all the selected figures
one grid point in the cursor direction. |
void |
keyPressed(java.awt.event.KeyEvent e)
Handles key down events. |
void |
keyReleased(java.awt.event.KeyEvent event)
|
void |
keyTyped(java.awt.event.KeyEvent event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardDrawingView.DrawingViewKeyListener
public StandardDrawingView.DrawingViewKeyListener()
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Handles key down events. Cursor keys are handled
by the view the other key events are delegated to the
currently active tool.
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
handleCursorKey
protected void handleCursorKey(int key)
- Handles cursor keys by moving all the selected figures
one grid point in the cursor direction.
keyTyped
public void keyTyped(java.awt.event.KeyEvent event)
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent event)
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
createDeleteCommand
protected Command createDeleteCommand()