Package gov.nih.mipav.view.renderer.J3D
Class JPanelCamera.StandardMouse
java.lang.Object
java.lang.Thread
gov.nih.mipav.view.renderer.J3D.JPanelCamera.StandardMouse
- All Implemented Interfaces:
Runnable
- Enclosing class:
JPanelCamera
Class used to send Standard mouse events to the canvas. Must subclass Thread because a single
mousePressed event on one of the mouse buttons needs to generate mouseDragged events on the
canvas until the mouse is released.-
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) intCanvas center coordinate.(package private) intCanvas center coordinate.(package private) MouseEventMouse event(package private) intMouseEvent id.(package private) intMouseevent mask(package private) ObjectEvent source(package private) longEvent time stamp.(package private) intCanvas center x and y.(package private) intCanvas center x and y.Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionStandardMouse(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
-
centerX
int centerXCanvas center coordinate. -
centerY
int centerYCanvas center coordinate. -
evt
MouseEvent evtMouse event -
source
Object sourceEvent source -
when
long whenEvent time stamp. -
mod
int modMouseevent mask -
x
int xCanvas center x and y. -
y
int yCanvas center x and y. -
id
int idMouseEvent id.
-
-
Constructor Details
-
StandardMouse
Creates new thread and sets up mouse event variables appropriately.- Parameters:
event- Original mouse event, from button.
-
-
Method Details