Class FlythruRender.RightMouseDragged

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

class FlythruRender.RightMouseDragged extends Thread
Right mouse button press down and drag event handler. When user press down the right mouse button and dragged, the RightMouseDragged handler control the camera viewing direction. Running on thread to solve mouse drag continued interaction.
Author:
ruida
  • Field Details

    • currentEvent

      MouseEvent 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!
    • viewDirection

      int viewDirection
      camera viewding direction.
  • Constructor Details

    • RightMouseDragged

      public RightMouseDragged(MouseEvent event, int _viewDirection)
      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