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)
ShortcutManager
init
in interface ShortcutManager
graph
- The graph to control.view
- The view to control.public void release()
ShortcutManager
release
in interface ShortcutManager
public void keyPressed(KeyEvent event)
keyPressed
in interface KeyListener
event
- The event that generated the key.public void keyReleased(KeyEvent event)
keyReleased
in interface KeyListener
event
- The event that generated the key.public void keyTyped(KeyEvent event)
keyTyped
in interface KeyListener
event
- The event that generated the key.Copyright © 2015. All rights reserved.