Class FlyPathBehavior.StandardKey

java.lang.Object
java.lang.Thread
gov.nih.mipav.view.renderer.J3D.surfaceview.flythruview.FlyPathBehavior.StandardKey
All Implemented Interfaces:
Runnable
Enclosing class:
FlyPathBehavior

class FlyPathBehavior.StandardKey extends Thread
Class used to send Standard key events to the canvas. Must subclass Thread because a single keyPressed event on one of the mouse buttons needs to generate keyReleased events on the canvas until the mouse is released.
  • Field Details

    • currentEvent

      KeyEvent currentEvent
      DOCUMENT ME!
    • evt

      int centerX, centerY;.
    • source

      Object source
      DOCUMENT ME!
    • when

      long when
      DOCUMENT ME!
    • x

      int x
      DOCUMENT ME!
    • y

      int y
      DOCUMENT ME!
    • mod

      int mod
      DOCUMENT ME!
    • id

      int id
      DOCUMENT ME!
  • Constructor Details

    • StandardKey

      public StandardKey(KeyEvent event)
      Creates new thread and sets up mouse event variables appropriately.
      Parameters:
      event - Original mouse event, from button.
  • Method Details

    • run

      public void run()
      Runs the thread. While the button is pressed, dispatches mouse dragged events at a rate consistent with the velocity slider. Once the mouse is released, pressed will be set to false and the loop will stop.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread