Class DefaultShortcutManager

java.lang.Object
org.graphstream.ui.swing_viewer.util.DefaultShortcutManager
All Implemented Interfaces:
KeyListener, EventListener, org.graphstream.ui.view.util.ShortcutManager

public class DefaultShortcutManager extends Object implements org.graphstream.ui.view.util.ShortcutManager, KeyListener
  • Field Details

    • view

      protected org.graphstream.ui.view.View view
      The viewer to control.
    • viewPercent

      protected double viewPercent
    • viewPos

      protected org.graphstream.ui.geom.Point3 viewPos
    • rotation

      protected double rotation
  • Constructor Details

    • DefaultShortcutManager

      public DefaultShortcutManager()
  • Method Details

    • init

      public void init(org.graphstream.ui.graphicGraph.GraphicGraph graph, org.graphstream.ui.view.View view)
      Specified by:
      init in interface org.graphstream.ui.view.util.ShortcutManager
    • release

      public void release()
      Specified by:
      release in interface org.graphstream.ui.view.util.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.