Class FlythruRender.RightMouse

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

class FlythruRender.RightMouse extends Thread
RightMouse press event handler. When the right mouse press down, rotate the camera view in clockwise direction. If the alt key is down and the right mouse press down event rotate the camera view in counter clockwise dirction. Running on thread to ensure the continuous mouse press down 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!
    • isClockRotation

      boolean isClockRotation
      flag indicate if the rotation is clockwise or counter clockwise.
  • Constructor Details

    • RightMouse

      public RightMouse(MouseEvent 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