org.graphstream.ui.swingViewer.util
Class ShortcutManager

java.lang.Object
  extended by org.graphstream.ui.swingViewer.util.ShortcutManager
All Implemented Interfaces:
KeyListener, EventListener

public class ShortcutManager
extends Object
implements KeyListener

Utility to centralise the shortcuts and actions for all view instances.


Constructor Summary
ShortcutManager(View view)
          New manager operating on the given viewer.
 
Method Summary
 void keyPressed(KeyEvent event)
          A key has been pressed.
 void keyReleased(KeyEvent event)
          A key has been pressed.
 void keyTyped(KeyEvent event)
          A key has been typed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortcutManager

public ShortcutManager(View view)
New manager operating on the given viewer.

Parameters:
view - The graph view to control.
Method Detail

keyPressed

public void keyPressed(KeyEvent event)
A key has been pressed.

Specified by:
keyPressed in interface KeyListener
Parameters:
event - The event that generated the key.

keyReleased

public void keyReleased(KeyEvent event)
A key has been pressed.

Specified by:
keyReleased in interface KeyListener
Parameters:
event - The event that generated the key.

keyTyped

public void keyTyped(KeyEvent event)
A key has been typed.

Specified by:
keyTyped in interface KeyListener
Parameters:
event - The event that generated the key.


Copyright © 2011. All Rights Reserved.