Class JPanelMousePlotter.PlayMouse
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.view.renderer.J3D.surfaceview.plotterview.JPanelMousePlotter.PlayMouse
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- JPanelMousePlotter
class JPanelMousePlotter.PlayMouse extends java.lang.Thread
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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
forever
DOCUMENT ME!(package private) boolean
isStopRequested
DOCUMENT ME!(package private) boolean
selectedToEnd
DOCUMENT ME!
-
Constructor Summary
Constructors Constructor Description PlayMouse(boolean selectedToEnd, boolean forever)
Constructs a new thread and initializes the parameters which dictate what kind of play this is.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
requestStop()
Ask for this thread to stop playback of the events.void
run()
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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
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
-true
indicates play the list of mouse events in sequential order from the first selected index.false
indicates only play the selected mouse event.forever
-true
indicates keep playing mouse events until the stop or pause button is pressed.
-
-