org.graphstream.ui.swingViewer.util
Class DefaultShortcutManager

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

public class DefaultShortcutManager
extends Object
implements ShortcutManager


Constructor Summary
DefaultShortcutManager()
           
 
Method Summary
 void init(GraphicGraph graph, View view)
          Make the manager active on the given graph and view.
 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.
 void release()
          Release the links between this manager and the view and the graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultShortcutManager

public DefaultShortcutManager()
Method Detail

init

public void init(GraphicGraph graph,
                 View view)
Description copied from interface: ShortcutManager
Make the manager active on the given graph and view.

Specified by:
init in interface ShortcutManager
Parameters:
graph - The graph to control.
view - The view to control.

release

public void release()
Description copied from interface: ShortcutManager
Release the links between this manager and the view and the graph.

Specified by:
release in interface ShortcutManager

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 © 2012. All Rights Reserved.