Class JPanelMouse.PlayMouse
java.lang.Object
java.lang.Thread
gov.nih.mipav.view.renderer.J3D.surfaceview.JPanelMouse.PlayMouse
- All Implemented Interfaces:
Runnable
- Enclosing class:
JPanelMouse
* Thread that plays. Must be a thread so that the stop and pause buttons work. Plays either one mouse event at a
time, the whole list from the selected index, or the whole list continuously.
-
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) booleanDOCUMENT ME!(package private) booleanDOCUMENT ME!Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionPlayMouse(boolean selectedToEnd, boolean forever) Constructs a new thread and initializes the parameters which dictate what kind of play this is -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Runs the thread and plays according to the established parameters.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
-
forever
boolean foreverDOCUMENT ME! -
selectedToEnd
boolean selectedToEndDOCUMENT ME!
-
-
Constructor Details
-
PlayMouse
public PlayMouse(boolean selectedToEnd, boolean forever) Constructs a new thread and initializes the parameters which dictate what kind of play this is.*- Parameters:
selectedToEnd-trueindicates play the list of mouse events in sequential order from the first selected index.falseindicates only play the selected mouse event. *forever-trueindicates keep playing mouse events until the stop or pause button is pressed.
-
-
Method Details