Class BasicGraphUI.KeyHandler

  • All Implemented Interfaces:
    java.awt.event.KeyListener, java.io.Serializable, java.util.EventListener
    Enclosing class:
    BasicGraphUI

    public class BasicGraphUI.KeyHandler
    extends java.awt.event.KeyAdapter
    implements java.io.Serializable
    This is used to get mutliple key down events to appropriately generate events.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean isKeyDown
      Set to true while keyPressed is active.
      protected javax.swing.Action repeatKeyAction
      Key code that is being generated for.
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void keyPressed​(java.awt.event.KeyEvent e)  
      void keyReleased​(java.awt.event.KeyEvent e)  
      • Methods inherited from class java.awt.event.KeyAdapter

        keyTyped
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • repeatKeyAction

        protected javax.swing.Action repeatKeyAction
        Key code that is being generated for.
      • isKeyDown

        protected boolean isKeyDown
        Set to true while keyPressed is active.
    • Constructor Detail

      • KeyHandler

        public KeyHandler()
    • Method Detail

      • keyPressed

        public void keyPressed​(java.awt.event.KeyEvent e)
        Specified by:
        keyPressed in interface java.awt.event.KeyListener
        Overrides:
        keyPressed in class java.awt.event.KeyAdapter
      • keyReleased

        public void keyReleased​(java.awt.event.KeyEvent e)
        Specified by:
        keyReleased in interface java.awt.event.KeyListener
        Overrides:
        keyReleased in class java.awt.event.KeyAdapter