Class FlyThroughRender.RightMouse
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.view.renderer.WildMagic.flythroughview.FlyThroughRender.RightMouse
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- FlyThroughRender
class FlyThroughRender.RightMouse extends java.lang.ThreadRightMouse 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 Summary
Fields Modifier and Type Field Description (package private) java.awt.event.MouseEventcurrentEventDOCUMENT ME!(package private) java.awt.event.MouseEventevtint centerX, centerY;.(package private) intidDOCUMENT ME!(package private) booleanisClockRotationflag indicate if the rotation is clockwise or counter clockwise.(package private) intmodDOCUMENT ME!(package private) java.lang.ObjectsourceDOCUMENT ME!(package private) longwhenDOCUMENT ME!(package private) intxDOCUMENT ME!(package private) intyDOCUMENT ME!
-
Constructor Summary
Constructors Constructor Description RightMouse(java.awt.event.MouseEvent event)Creates new thread and sets up mouse event variables appropriately.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()Runs the thread.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
currentEvent
java.awt.event.MouseEvent currentEvent
DOCUMENT ME!
-
evt
java.awt.event.MouseEvent evt
int centerX, centerY;.
-
source
java.lang.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.
-
-
Method Detail
-
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,pressedwill be set to false and the loop will stop.- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
-