Class VoodooMainWindow
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--CloseableFrame.CloseableFrame
|
+--VoodooMainWindow
- public class VoodooMainWindow
- extends CloseableFrame.CloseableFrame
- See Also:
- Serialized Form
Inner classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Fields inherited from class javax.swing.JFrame |
accessibleContext,
defaultCloseOperation,
rootPane,
rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
base,
CROSSHAIR_CURSOR,
DEFAULT_CURSOR,
E_RESIZE_CURSOR,
frameSerializedDataVersion,
HAND_CURSOR,
icon,
ICONIFIED,
mbManagement,
menuBar,
MOVE_CURSOR,
N_RESIZE_CURSOR,
nameCounter,
NE_RESIZE_CURSOR,
NORMAL,
NW_RESIZE_CURSOR,
ownedWindows,
resizable,
S_RESIZE_CURSOR,
SE_RESIZE_CURSOR,
serialVersionUID,
state,
SW_RESIZE_CURSOR,
TEXT_CURSOR,
title,
W_RESIZE_CURSOR,
WAIT_CURSOR,
weakThis |
Fields inherited from class java.awt.Window |
active,
base,
focusMgr,
inputContext,
nameCounter,
OPENED,
ownedWindowList,
serialVersionUID,
state,
warningString,
weakThis,
windowListener,
windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component,
containerListener,
containerSerializedDataVersion,
dispatcher,
layoutMgr,
maxSize,
ncomponents,
serialVersionUID |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
assert,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
changeSupport,
componentListener,
componentListenerK,
componentOrientation,
componentSerializedDataVersion,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
name,
nameExplicitlySet,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
serialVersionUID,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary |
VoodooMainWindow(java.lang.String window_title)
Class constructor. |
Method Summary |
private void |
add_components(java.awt.Container container,
javax.swing.JComponent compnt,
java.awt.GridBagLayout gbl,
java.awt.GridBagConstraints gbc,
int insetTOP,
int insetLEFT,
int insetBOTTOM,
int insetRIGHT,
int cfill,
int anchr,
int col,
int row,
int gw,
int gh)
Adds the specified component to the specified panel. |
private void |
add_components(javax.swing.JPanel panel,
javax.swing.JComponent compnt,
java.awt.GridBagLayout gbl,
java.awt.GridBagConstraints gbc,
int insetTOP,
int insetLEFT,
int insetBOTTOM,
int insetRIGHT,
int cfill,
int anchr,
int col,
int row,
int gw,
int gh)
Adds the specified component to the specified panel. |
static void |
clear_info_panel_text()
This method clears the info/status text. |
private javax.swing.JPanel |
create_camera_control_panel()
This method creates the array control panel. |
private javax.swing.JPanel |
create_exposure_control_panel()
This method creates the exposure control panel. |
private javax.swing.JPanel |
create_image_control_panel()
This method creates the image control panel. |
private javax.swing.JScrollPane |
create_info_panel()
This method creates the info/status panel. |
private javax.swing.JMenuBar |
create_menu_bar()
This method creates the menu bar. |
private javax.swing.JToolBar |
create_toolbar()
This method creates the tool bar. |
static int |
get_progress_bar_max_value()
This method gets the maximum value the progress bar can have. |
private java.awt.Frame |
getParentFrame(java.awt.Component component)
This method returns the parent frame for the specified component. |
static void |
increment_info_panel_scrollbar()
This method downwardly increments the info/status panel scrollbar. |
static void |
set_elapsed_time(int elapsed_time)
This method sets the elapsed exposure time string. |
void |
set_exposure_event_listener(int array_type)
This method sets the current exposure event listener, which is determined
by the controller configuration used. |
static void |
set_info_panel_text(int style,
java.lang.String text)
This method searches out and replaces the last "waiting" string with
text. |
static void |
set_info_panel_text(java.lang.String text,
int style)
This method sets the info/status text. |
static void |
set_info_panel_text(java.lang.String text,
int style,
int offset)
This method sets the info/status text. |
static void |
set_progress_bar(int i)
This method updates the readout progress bar. |
void |
set_temperature_label(double temperature)
This method sets the current array temperature string. |
Methods inherited from class javax.swing.JFrame |
addImpl,
createRootPane,
createRootPaneException,
frameInit,
getAccessibleContext,
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
processWindowEvent,
remove,
setContentPane,
setDefaultCloseOperation,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setRootPane,
setRootPaneCheckingEnabled,
update |
Methods inherited from class java.awt.Frame |
,
addNotify,
addToFrameList,
constructComponentName,
finalize,
getCursorType,
getFrames,
getIconImage,
getMenuBar,
getState,
getTitle,
initIDs,
isResizable,
postProcessKeyEvent,
readObject,
remove,
removeFromFrameList,
removeNotify,
setCursor,
setIconImage,
setMenuBar,
setResizable,
setState,
setTitle,
writeObject |
Methods inherited from class java.awt.Window |
addOwnedWindow,
addWindowListener,
applyResourceBundle,
applyResourceBundle,
connectOwnedWindow,
dispatchEventImpl,
dispose,
eventEnabled,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
hide,
isActive,
isShowing,
nextFocus,
ownedInit,
pack,
postEvent,
postWindowEvent,
preProcessKeyEvent,
processEvent,
removeOwnedWindow,
removeWindowListener,
setCursor,
setFocusOwner,
setWarningString,
show,
toBack,
toFront,
transferFocus |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
applyOrientation,
countComponents,
deliverEvent,
dispatchEventToSelf,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents_NoClientCode,
getComponents,
getCursorTarget,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getMouseEventTarget,
getPreferredSize,
getWindow,
insets,
invalidate,
invalidateTree,
isAncestorOf,
layout,
lightweightPrint,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
postsOldMouseEvents,
preferredSize,
print,
printComponents,
printHeavyweightComponents,
printOneComponent,
processContainerEvent,
proxyEnableEvents,
proxyRequestFocus,
remove,
removeAll,
removeContainerListener,
setFont,
updateCursor,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getIntrinsicCursor,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getSize,
getToolkitImpl,
getTreeLock,
getWidth,
getWindowForObject,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
isFocusTraversable,
isLightweight,
isOpaque,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processMouseEvent,
processMouseMotionEvent,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
content_pane
private java.awt.Container content_pane
panel_holder
private java.awt.Container panel_holder
parent_frame
private java.awt.Frame parent_frame
image_buffers_dialog
protected ImageBuffersDialog image_buffers_dialog
dsp_dialog
protected DspDialog dsp_dialog
setup_dialog
protected SetupDialog setup_dialog
fits_dialog
protected FitsDialog fits_dialog
voodoo_global_setup_dialog
protected VoodooGlobalSetupDialog voodoo_global_setup_dialog
main_window_listener
protected VoodooMainWindowListener main_window_listener
exposure_control_listener
protected ExposureControlListener exposure_control_listener
array_control_listener
protected ArrayControlListener array_control_listener
global_setup
private VoodooGlobalSetupSave global_setup
new_ccd_control_panel
private javax.swing.JPanel new_ccd_control_panel
new_image_control_panel
private javax.swing.JPanel new_image_control_panel
new_exposure_panel
private javax.swing.JPanel new_exposure_panel
sub_panel_holder
private javax.swing.JPanel sub_panel_holder
button_panel
private javax.swing.JPanel button_panel
new_menu_bar
private javax.swing.JMenuBar new_menu_bar
new_toolbar
private javax.swing.JToolBar new_toolbar
info_output_textarea
private static javax.swing.JTextPane info_output_textarea
contentModel
private static javax.swing.text.Document contentModel
charStyle1
private static javax.swing.text.MutableAttributeSet charStyle1
charStyle2
private static javax.swing.text.MutableAttributeSet charStyle2
charStyle3
private static javax.swing.text.MutableAttributeSet charStyle3
info_pane
private static javax.swing.JEditorPane info_pane
scroll_pane
private static javax.swing.JScrollPane scroll_pane
progress_bar
private static javax.swing.JProgressBar progress_bar
elapsed_label
private static javax.swing.JLabel elapsed_label
line_counter
private static int line_counter
temperature1_label
private javax.swing.JLabel temperature1_label
temperature2_label
private javax.swing.JLabel temperature2_label
minimize_icon
private java.awt.Image minimize_icon
font
private java.awt.Font font
expose_button
protected javax.swing.JButton expose_button
pause_button
protected javax.swing.JButton pause_button
change_exp_time_button
protected javax.swing.JButton change_exp_time_button
open_shutter_now_button
protected javax.swing.JButton open_shutter_now_button
clear_array_button
protected javax.swing.JButton clear_array_button
idle_array_button
protected javax.swing.JButton idle_array_button
read_temperature_button
protected javax.swing.JButton read_temperature_button
reset_controller_button
protected javax.swing.JButton reset_controller_button
reset_pci_pc_button
protected javax.swing.JButton reset_pci_pc_button
save_disk_chkbox
protected javax.swing.JCheckBox save_disk_chkbox
display_image_chkbox
protected javax.swing.JCheckBox display_image_chkbox
delay_chkbox
protected javax.swing.JCheckBox delay_chkbox
multi_exp_chkbox
protected javax.swing.JCheckBox multi_exp_chkbox
beep_chkbox
protected javax.swing.JCheckBox beep_chkbox
open_shutter_chkbox
protected javax.swing.JCheckBox open_shutter_chkbox
autoincr_chkbox
protected javax.swing.JCheckBox autoincr_chkbox
image_incr_start_number_label
protected javax.swing.JLabel image_incr_start_number_label
exposure_time_txtfld
protected VTextField exposure_time_txtfld
mult_exp_txtfld
protected VTextField mult_exp_txtfld
image_filename_txtfld
protected VTextField image_filename_txtfld
delay_txtfld
protected VTextField delay_txtfld
image_incr_start_number_txtfld
protected VTextField image_incr_start_number_txtfld
deinterlace_combo_box
protected javax.swing.JComboBox deinterlace_combo_box
VoodooMainWindow
public VoodooMainWindow(java.lang.String window_title)
- Class constructor.
- Parameters:
window_width
- The desired width of the application window.window_height
- The desired height of the application window.window_title
- The text to display at the top of the application
window.- See Also:
CloseableFrame
getParentFrame
private java.awt.Frame getParentFrame(java.awt.Component component)
- This method returns the parent frame for the specified component. USED ???
- Parameters:
component
- The component who's parent frame is wanted.
create_menu_bar
private javax.swing.JMenuBar create_menu_bar()
- This method creates the menu bar.
- Returns:
- Returns the constructed menu bar.
- See Also:
JMenuBar
create_toolbar
private javax.swing.JToolBar create_toolbar()
- This method creates the tool bar.
- Returns:
- Returns the constructed tool bar.
- See Also:
JToolBar
create_camera_control_panel
private javax.swing.JPanel create_camera_control_panel()
- This method creates the array control panel.
- Returns:
- Returns the constructed array control panel.
- See Also:
JPanel
create_image_control_panel
private javax.swing.JPanel create_image_control_panel()
- This method creates the image control panel.
- Returns:
- Returns the constructed image control panel.
- See Also:
JPanel
create_exposure_control_panel
private javax.swing.JPanel create_exposure_control_panel()
- This method creates the exposure control panel.
- Returns:
- Returns the constructed exposure control panel.
- See Also:
JPanel
create_info_panel
private javax.swing.JScrollPane create_info_panel()
- This method creates the info/status panel.
- Returns:
- Returns the constructed info/status panel.
- See Also:
JScrollPane
add_components
private void add_components(javax.swing.JPanel panel,
javax.swing.JComponent compnt,
java.awt.GridBagLayout gbl,
java.awt.GridBagConstraints gbc,
int insetTOP,
int insetLEFT,
int insetBOTTOM,
int insetRIGHT,
int cfill,
int anchr,
int col,
int row,
int gw,
int gh)
- Adds the specified component to the specified panel.
- Parameters:
panel
- The panel to which the component will be added.compnt
- The component to add.gbl
- The GridBagLayout of the panel.gbl
- The GridBagConstraints of the panel.insetTOP
- The distance in pixels between the top of this
component and the one above it.insetBOTTOM
- The distance in pixels between the bottom of
this component and the one below it.insetLEFT
- The distance in pixels between the left side of
this component and the one left of it.insetRIGHT
- The distance in pixels between the right side
of this component and the one right of it.cfill
- Determines how the component "fills" the space of
of its "cell".anchr
- The justification of the component within its "cell".col
- The x position of the component.row
- The y position of the component.gw
- The number of "cells" that the component spans in the
width direction.gh
- The number of "cells" that the component spans in the
height direction.- See Also:
JPanel
,
JComponent
,
GridBagLayout
,
GridBagConstraints
add_components
private void add_components(java.awt.Container container,
javax.swing.JComponent compnt,
java.awt.GridBagLayout gbl,
java.awt.GridBagConstraints gbc,
int insetTOP,
int insetLEFT,
int insetBOTTOM,
int insetRIGHT,
int cfill,
int anchr,
int col,
int row,
int gw,
int gh)
- Adds the specified component to the specified panel.
- Parameters:
container
- The container to which the component will be added.compnt
- The component to add.gbl
- The GridBagLayout of the panel.gbl
- The GridBagConstraints of the panel.insetTOP
- The distance in pixels between the top of this
component and the one above it.insetBOTTOM
- The distance in pixels between the bottom of
this component and the one below it.insetLEFT
- The distance in pixels between the left side of
this component and the one left of it.insetRIGHT
- The distance in pixels between the right side
of this component and the one right of it.cfill
- Determines how the component "fills" the space of
of its "cell".anchr
- The justification of the component within its "cell".col
- The x position of the component.row
- The y position of the component.gw
- The number of "cells" that the component spans in the
width direction.gh
- The number of "cells" that the component spans in the
height direction.- See Also:
JPanel
,
JComponent
,
GridBagLayout
,
GridBagConstraints
set_info_panel_text
public static void set_info_panel_text(java.lang.String text,
int style)
- This method sets the info/status text.
- Parameters:
text
- The text to display in the info/status panel.style
- The style of the text to display. Style = 1, means use
charStyle1 (Courier, plain, 14, black). Style = 2, means
use charStyle2 (Courier, plain, 14, red). Style = 3,
means use charStyle3 (Courier, plain, 14, blue).
set_info_panel_text
public static void set_info_panel_text(java.lang.String text,
int style,
int offset)
- This method sets the info/status text.
- Parameters:
text
- The text to display in the info/status panel.style
- The style of the text to display. Style = 1, means use
charStyle1 (Courier, plain, 14, black). Style = 2, means
use charStyle2 (Courier, plain, 14, red). Style = 3,
means use charStyle3 (Courier, plain, 14, blue).
set_info_panel_text
public static void set_info_panel_text(int style,
java.lang.String text)
- This method searches out and replaces the last "waiting" string with
text.
- Parameters:
text
- The text to display in the info/status panel.style
- The style of the text to display. Style = 1, means use
charStyle1 (Courier, plain, 14, black). Style = 2, means
use charStyle2 (Courier, plain, 14, red). Style = 3,
means use charStyle3 (Courier, plain, 14, blue).
clear_info_panel_text
public static void clear_info_panel_text()
- This method clears the info/status text.
increment_info_panel_scrollbar
public static void increment_info_panel_scrollbar()
- This method downwardly increments the info/status panel scrollbar. To
ensure proper scrolling, this method must be called BEFORE any text is
written to the window.
set_progress_bar
public static void set_progress_bar(int i)
- This method updates the readout progress bar. NOT USED !!!
- Parameters:
i
- The current value to be set.
get_progress_bar_max_value
public static int get_progress_bar_max_value()
- This method gets the maximum value the progress bar can have. NOT USED !!!
- Returns:
- Returns the maximum progress bar value.
set_elapsed_time
public static void set_elapsed_time(int elapsed_time)
- This method sets the elapsed exposure time string.
- Parameters:
elapsed_time
- The elapsed exposure time (in seconds).
set_temperature_label
public void set_temperature_label(double temperature)
- This method sets the current array temperature string.
- Parameters:
temperature
- The current array temperature (in Celcius).
set_exposure_event_listener
public void set_exposure_event_listener(int array_type)
- This method sets the current exposure event listener, which is determined
by the controller configuration used.
- Parameters:
array_type
- CCD (0) or IR (1). Bit 12 of the READ_CONTROLLER_CONFIG
command's return value.