ccd
Class JCamera.DisplayThread

java.lang.Object
  extended by java.lang.Thread
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  JCamera.ExposeThread readin
          The helper thread doing the ccd exposure.
private  int state
          The current state I'm in.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected JCamera.DisplayThread(JCamera.ExposeThread notifier)
          Constructs a display thread that waits on the helper thread for notification.
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

readin

private JCamera.ExposeThread readin
The helper thread doing the ccd exposure.


state

private int state
The current state I'm in.

Constructor Detail

JCamera.DisplayThread

protected JCamera.DisplayThread(JCamera.ExposeThread notifier)
Constructs a display thread that waits on the helper thread for notification.

Method Detail

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.