Eclipse GEF
2.1

org.eclipse.gef.ui.parts
Class GraphicalViewerKeyHandler

java.lang.Object
  |
  +--org.eclipse.gef.KeyHandler
        |
        +--org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler
Direct Known Subclasses:
PaletteViewerKeyHandler

public class GraphicalViewerKeyHandler
extends KeyHandler


Constructor Summary
GraphicalViewerKeyHandler(GraphicalViewer viewer)
           
 
Method Summary
protected  GraphicalViewer getViewer()
           
 boolean keyPressed(KeyEvent event)
          Processes a key pressed event.
 
Methods inherited from class org.eclipse.gef.KeyHandler
keyReleased, put, remove, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicalViewerKeyHandler

public GraphicalViewerKeyHandler(GraphicalViewer viewer)
Method Detail

getViewer

protected GraphicalViewer getViewer()

keyPressed

public boolean keyPressed(KeyEvent event)
Description copied from class: KeyHandler
Processes a key pressed event. This method is called by the Tool whenever a key is pressed, and the Tool is in the proper state.

Overrides:
keyPressed in class KeyHandler
Parameters:
event - the KeyEvent * @return true if KeyEvent was handled in some way

Eclipse GEF
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.