|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SwingWorker | +--ExposureCommand
Field Summary | |
protected int |
byte_count
|
protected boolean |
change_exposure_time
|
protected int |
cols
|
protected static boolean |
current_shutter_position
|
protected int |
deinterlace_value
|
protected int |
delay
|
protected boolean |
do_auto_increment
|
protected boolean |
do_beep
|
protected boolean |
do_deinterlacing
|
protected boolean |
do_delay
|
protected boolean |
do_display
|
protected boolean |
do_image_save
|
protected boolean |
do_multiple_exposures
|
protected boolean |
do_open_shutter
|
protected DspCommand2 |
dsp_cmd
|
protected int |
elapsed_time
|
protected int |
exposure_time
|
protected Fits |
image
|
protected java.lang.String |
image_filename
|
protected java.lang.String |
image_filename_prefix
|
protected int |
image_resolution
|
protected int |
increment
|
protected int |
last_increment
|
protected int |
number_of_exposures
|
protected VoodooMainWindow |
parent
|
protected boolean |
pause
|
protected int |
rows
|
protected int |
start_increment
|
protected static boolean |
use_controller_exptime
|
Fields inherited from class SwingWorker |
abort,
thread,
value |
Constructor Summary | |
ExposureCommand(VoodooMainWindow parent)
Constructor. |
Method Summary | |
void |
abort_exposure()
This method aborts the current exposure. |
void |
abort_readout()
This method aborts the current image readout. |
void |
change_exposure_time()
This method indicates that the current exposure time should be changed to the new value. |
protected void |
components_enabled(boolean mode)
This method enables/disables the components on the main window. |
java.lang.Object |
construct()
This method starts the SwingWorker thread. |
java.lang.Object |
expose()
This method performs the exposure sequence. |
void |
finished()
This method closes the SwingWorker thread. |
private void |
monitor_readout()
|
void |
pause_exposure(boolean pause)
This method pauses the current exposure. |
void |
set_auto_increment(boolean auto_increment)
This method specifies whether or not to auto increment the image file. |
void |
set_beep(boolean beep)
This method specifies whether or not to beep when the exposure is complete. |
void |
set_deinterlace_value(int value)
This method sets the deinterlace method to use. |
void |
set_deinterlacing(boolean deinterlacing)
This method sets the deinterlacing control to on/off. |
void |
set_delay(boolean delay)
This method specifies whether or not to delay before each exposure. |
void |
set_delay(java.lang.String delay_time)
This method sets the pre-exposure delay. |
void |
set_display_image(boolean display)
This method specifies whether or not to display the image after the exposure completes. |
static void |
set_exposure_controller_mode(boolean use_controller)
This method sets which should be used to control the exposure time count, the controller or the host CPU. |
void |
set_exposure_time(java.lang.String exp_time)
This method sets the exposure time. |
void |
set_image_dimensions(int row_num,
int col_num)
This method sets the image dimensions. |
void |
set_image_filename(java.lang.String image_file)
This method sets the image filename. |
void |
set_image_resolution(int resolution)
This method sets the image resolution. |
void |
set_multiple_exposures(boolean multiple_exposures)
This method specifies whether or not to do multiple images. |
void |
set_number_of_exposures(java.lang.String num_of_exp)
This method sets the number of exposure to take. |
void |
set_open_shutter(boolean open_shutter)
This method specifies whether or not to open the shutter during an exposure. |
void |
set_save_to_disk(boolean save_to_disk)
This method specifies whether or not to save the image. |
protected int |
set_shutter_postion()
This method sets the current shutter position that is to used during the exposure. |
private void |
updateStatus(int i)
|
Methods inherited from class SwingWorker |
alive,
get,
interrupt,
stop,
thread_it |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected VoodooMainWindow parent
protected DspCommand2 dsp_cmd
protected Fits image
protected int byte_count
protected int rows
protected int cols
protected int elapsed_time
protected int start_increment
protected int last_increment
protected int increment
protected int exposure_time
protected int image_resolution
protected java.lang.String image_filename
protected java.lang.String image_filename_prefix
protected boolean do_image_save
protected boolean do_multiple_exposures
protected boolean do_auto_increment
protected boolean do_delay
protected boolean do_display
protected boolean do_beep
protected boolean do_deinterlacing
protected boolean do_open_shutter
protected boolean pause
protected boolean change_exposure_time
protected static boolean current_shutter_position
protected int deinterlace_value
protected int number_of_exposures
protected int delay
protected static boolean use_controller_exptime
Constructor Detail |
public ExposureCommand(VoodooMainWindow parent)
VoodooMainWindow
,
SwingWorker
Method Detail |
public void abort_exposure()
VoodooMainWindow
,
SwingWorker
,
DspCommand2
public void pause_exposure(boolean pause)
VoodooMainWindow
,
SwingWorker
,
DspCommand2
public void change_exposure_time()
VoodooMainWindow
,
SwingWorker
,
DspCommand2
public void abort_readout()
VoodooMainWindow
,
SwingWorker
,
DspCommand2
public void set_save_to_disk(boolean save_to_disk)
save_to_disk
- If true, save image to disk. If false, do not
save the image.public void set_multiple_exposures(boolean multiple_exposures)
multiple_exposures
- If true, do multiple exposures. If false,
do not do multiple exposures.public void set_auto_increment(boolean auto_increment)
auto_increment
- If true, auto increment filename. If false,
do not auto increment filename.public void set_delay(boolean delay)
delay
- If true, delay before each exposure. If false,
do not delay before each exposure.public void set_beep(boolean beep)
beep
- If true, beep after exposure completes. If false, do not
beep after exposure completes.public void set_display_image(boolean display)
display
- If true, display image after exposure completes. If
false, do not display image after exposure completes.public void set_open_shutter(boolean open_shutter)
display
- If true, open the shutter during an exposure. If
false, do not open the shutter during an exposure.public static void set_exposure_controller_mode(boolean use_controller)
use_controller
- True means use the controller for exposure time
count. False means use the host CPU.public void set_deinterlacing(boolean deinterlacing)
deinterlacing
- True to set the perform deinterlacing, false to not
perform deinterlacing.public void set_deinterlace_value(int value)
1. Single readout from one output. 2. Dual readout with parallel split from two outputs. 3. Dual readout with serial split from two outputs. 4. Quad readout from four outputs.
value
- The deinterlace method.public void set_exposure_time(java.lang.String exp_time) throws java.lang.NumberFormatException
exp_time
- The exposure time (as a String).public void set_delay(java.lang.String delay_time) throws java.lang.NumberFormatException
delay_time
- The pre-exposure delay time (as a String).public void set_number_of_exposures(java.lang.String num_of_exp) throws java.lang.NumberFormatException
num_of_exp
- The number of exposures to take (as a String).public void set_image_filename(java.lang.String image_file) throws java.lang.Exception
image_file
- The image filename.public void set_image_dimensions(int row_num, int col_num)
row_num
- The number of image rows.col_num
- The number of image columns.public void set_image_resolution(int resolution)
resolution
- The image resolution.public java.lang.Object construct()
SwingWorker
public void finished()
SwingWorker
public java.lang.Object expose()
protected int set_shutter_postion()
private void updateStatus(int i)
private void monitor_readout()
protected void components_enabled(boolean mode)
mode
- True means enable the components. False means disable
the components.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |