ccd
Class JCamera.DisplayThread
java.lang.Object
java.lang.Thread
ccd.JCamera.DisplayThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- JCamera
protected class JCamera.DisplayThread
- extends Thread
The thread waiting on the read-out thread for notification. It then
displays the current fits file.
|
Method Summary |
protected int |
getDisplayState()
Returns the current state of the thread. |
void |
run()
Goes into a wait state until we are notified from the exposure thread
or until we are interrupted. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
readin
private JCamera.ExposeThread readin
- The helper thread doing the ccd exposure.
state
private int state
- The current state I'm in.
JCamera.DisplayThread
protected JCamera.DisplayThread(JCamera.ExposeThread notifier)
- Constructs a display thread that waits on the helper thread for
notification.
run
public void run()
- Goes into a wait state until we are notified from the exposure thread
or until we are interrupted.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
getDisplayState
protected int getDisplayState()
- Returns the current state of the thread. Useful if exposing and
reading the ccd is faster than fits retrieval.