Class JPanelFlythruMove.StandardMouse
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.view.renderer.flythroughview.JPanelFlythruMove.StandardMouse
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- JPanelFlythruMove
class JPanelFlythruMove.StandardMouse extends java.lang.Thread
Class used to send Standard mouse events to the canvas. Must subclass Thread because a singlemousePressed
event on one of the mouse buttons needs to generatemouseDragged
events on the canvas until the mouse is released.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.awt.event.MouseEvent
currentEvent
DOCUMENT ME!(package private) java.awt.event.MouseEvent
evt
int centerX, centerY;.(package private) int
id
DOCUMENT ME!(package private) int
mod
DOCUMENT ME!(package private) java.lang.Object
source
DOCUMENT ME!(package private) long
when
DOCUMENT ME!(package private) int
x
DOCUMENT ME!(package private) int
y
DOCUMENT ME!
-
Constructor Summary
Constructors Constructor Description StandardMouse(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 void
run()
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
-
-
-
-
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,pressed
will be set to false and the loop will stop.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-