org.jhotdraw.standard
Class StandardDrawingView.DrawingViewKeyListener

java.lang.Object
  extended byorg.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


Constructor Summary
StandardDrawingView.DrawingViewKeyListener()
           
 
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
 

Constructor Detail

StandardDrawingView.DrawingViewKeyListener

public StandardDrawingView.DrawingViewKeyListener()
Method Detail

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()