public class DefaultShortcutManager extends Object implements ShortcutManager
| Constructor and Description |
|---|
DefaultShortcutManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void init(GraphicGraph graph, View view)
ShortcutManagerinit in interface ShortcutManagergraph - The graph to control.view - The view to control.public void release()
ShortcutManagerrelease in interface ShortcutManagerpublic void keyPressed(KeyEvent event)
keyPressed in interface KeyListenerevent - The event that generated the key.public void keyReleased(KeyEvent event)
keyReleased in interface KeyListenerevent - The event that generated the key.public void keyTyped(KeyEvent event)
keyTyped in interface KeyListenerevent - The event that generated the key.Copyright © 2015. All rights reserved.