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
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescription(package private) MouseEventDOCUMENT ME!(package private) MouseEventint centerX, centerY;.(package private) intDOCUMENT ME!(package private) booleanflag indicate if the rotation is clockwise or counter clockwise.(package private) intDOCUMENT ME!(package private) ObjectDOCUMENT ME!(package private) longDOCUMENT ME!(package private) intDOCUMENT ME!(package private) intDOCUMENT ME!Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionRightMouse(MouseEvent event) Creates new thread and sets up mouse event variables appropriately. -
Method Summary
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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
currentEvent
MouseEvent currentEventDOCUMENT ME! -
evt
MouseEvent evtint centerX, centerY;. -
source
Object sourceDOCUMENT ME! -
when
long whenDOCUMENT ME! -
x
int xDOCUMENT ME! -
y
int yDOCUMENT ME! -
mod
int modDOCUMENT ME! -
id
int idDOCUMENT ME! -
isClockRotation
boolean isClockRotationflag indicate if the rotation is clockwise or counter clockwise.
-
-
Constructor Details
-
RightMouse
Creates new thread and sets up mouse event variables appropriately.- Parameters:
event- Original mouse event, from button.
-
-
Method Details