Class ControllerConfigDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--ControllerConfigDialog

public class ControllerConfigDialog
extends javax.swing.JDialog

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
private  javax.swing.JButton apply_all_button
           
private  javax.swing.JButton apply_button
           
protected  javax.swing.JCheckBox array_temperature_chkbox
           
protected  javax.swing.JComboBox binning_parameters_combo_Bx
           
protected  javax.swing.JComboBox binning_parameters_combo_By
           
protected  javax.swing.JLabel both_readout_pics_label
           
protected  javax.swing.JPanel bottom_readout_panel
           
protected  javax.swing.JLabel[] channel_label
           
protected  VTextField[] channel_txtfld
           
protected  int config_data
           
protected  javax.swing.JLabel configuration_code_label
           
protected  java.awt.Container content_pane
           
protected  ControllerConfigListener controller_config_listener
           
protected  javax.swing.JTabbedPane controller_config_tabbed_pane
           
protected  VTextField derived_array_size_x_txtfld
           
protected  VTextField derived_array_size_y_txtfld
           
protected  int derived_size_x
           
protected  int derived_size_y
           
protected  javax.swing.JCheckBox download_coadder_board_chkbox
           
protected  javax.swing.Icon dual_readout_AB_icon
           
protected  javax.swing.JRadioButton dual_readout_AB_rbutton
           
protected  javax.swing.Icon dual_readout_CD_icon
           
protected  javax.swing.JRadioButton dual_readout_CD_rbutton
           
protected  javax.swing.Icon dual_readout_serial_L_icon
           
protected  javax.swing.Icon dual_readout_serial_LR_icon
           
protected  javax.swing.Icon dual_readout_serial_R_icon
           
protected  javax.swing.JRadioButton fast_speed_rbutton
           
private  java.awt.Font font
           
protected  javax.swing.JRadioButton gain_1_rbutton
           
protected  javax.swing.JRadioButton gain_2_rbutton
           
protected  javax.swing.JRadioButton gain_475_rbutton
           
protected  javax.swing.JRadioButton gain_95_rbutton
           
protected  int image_ncols
           
protected  int image_nrows
           
protected  VTextField image_size_ncols_txtfld
           
protected  VTextField image_size_nrows_txtfld
           
protected  javax.swing.JLabel linear_coeff_description_label1
           
protected  javax.swing.JLabel linear_coeff_description_label2
           
protected  javax.swing.JLabel linear_coeff1_label
           
protected  VTextField linear_coeff1_txtfld
           
protected  javax.swing.JLabel linear_coeff2_label
           
protected  VTextField linear_coeff2_txtfld
           
private  javax.swing.JMenuBar menu_bar
           
protected  javax.swing.JCheckBox mpp_chkbox
           
protected  javax.swing.JLabel nc_label
           
protected  VTextField nc_txtfld
           
protected  javax.swing.JCheckBox number_of_coadder_chkbox
           
protected  int number_of_controller_config_windows
           
protected  javax.swing.JComboBox number_of_readout_channels_combo_box
           
protected  SetupDialog parent
           
protected  javax.swing.JRadioButton quad_readout_ABCD_rbutton
           
protected  javax.swing.Icon quad_readout_icon
           
protected  javax.swing.JLabel range_of_nc_label
           
protected  javax.swing.JLabel readout_pics_label
           
protected  VTextField readout_status_parallel_txtfld
           
protected  VTextField readout_status_serial_txtfld
           
protected  VTextField readout_status_txtfld
           
protected  javax.swing.JRadioButton serial_readout_L_rbutton
           
protected  javax.swing.JRadioButton serial_readout_LR_rbutton
           
protected  javax.swing.JLabel serial_readout_pics_label
           
protected  javax.swing.JRadioButton serial_readout_R_rbutton
           
protected  javax.swing.Icon single_readout_A_icon
           
protected  javax.swing.JRadioButton single_readout_A_rbutton
           
protected  javax.swing.Icon single_readout_B_icon
           
protected  javax.swing.JRadioButton single_readout_B_rbutton
           
protected  javax.swing.Icon single_readout_C_icon
           
protected  javax.swing.JRadioButton single_readout_C_rbutton
           
protected  javax.swing.Icon single_readout_D_icon
           
protected  javax.swing.JRadioButton single_readout_D_rbutton
           
protected  javax.swing.JRadioButton slow_speed_rbutton
           
private  java.awt.Font summary_font
           
protected  javax.swing.JLabel supported_bit_description_label
           
protected  javax.swing.JLabel supported_capabilities_label
           
protected  javax.swing.JTextArea supported_capabilities_txtarea
           
protected  VTextField temperature_txtfld
           
protected  javax.swing.JPanel top_both_readout_panel
           
protected  javax.swing.JPanel top_serial_readout_panel
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, defaultCloseOperation, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
base, keepBlocking, modal, nameCounter, resizable, serialVersionUID, title
 
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
ControllerConfigDialog(SetupDialog parent)
          Class constructor.
 
Method Summary
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.
 void clickApplyAll()
          This method performs a software "click" of the "Apply All" button.
private  javax.swing.JPanel create_binning_panel()
          This method creates the panel that contains all the user input components.
private  javax.swing.JPanel create_bottom_readout_panel()
          This method creates the bottom amp split options panel for this dialog window.
private  javax.swing.JPanel create_button_panel()
          This method creates the panel that contains the apply button.
private  javax.swing.JPanel create_coadder_panel()
          This method creates the Coadder panel.
private  javax.swing.JPanel create_gain_panel()
          This method creates the Gain panel.
private  javax.swing.JMenuBar create_menu_bar()
          This method creates the menu bar.
private  javax.swing.JPanel create_mpp_panel()
          This method creates the MPP (Multi-pin phased) control panel.
private  javax.swing.JPanel create_readout_both_panel()
          This method creates the serial/parallel readout panel.
private  javax.swing.JPanel create_serial_readout_panel()
          This method creates the serial readout panel.
private  javax.swing.JPanel create_summary_panel()
          This method creates the summary ("Configuration") tab panel.
private  javax.swing.JTabbedPane create_tabbed_pane()
          Creates the "tabbed" panels portion of the window.
private  javax.swing.JPanel create_temperature_panel()
          This method creates a new tabbed pane - Temperature.
private  javax.swing.JPanel create_top_readout_both_panel()
          This method creates the top amp split options panel for the dialog window when both serial and parallel are true.
private  javax.swing.JPanel create_top_readout_serial_panel()
          This method creates the top amp split options panel for the dialog window when only serial is true.
private  javax.swing.JPanel create_video_offsets_panel()
          This method creates the Video Offsets panel.
 void set_apply_all_button_text(java.lang.String text)
          This method sets the apply all button text to the specified string.
 void set_apply_button_text(java.lang.String text)
          This method sets the apply button text to the specified string.
 void set_config_data(int config_data)
          This method sets ControllerConfigDialog to the certain bit values.
private  void set_supported_text(java.lang.String text)
          This method sets the supported/unsupported configuration text to the specified string, which is constructed as follows: bit# text
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, createRootPaneException, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
, addNotify, conditionalShow, constructComponentName, dispose, getTitle, hide, hideAndDisposeHandler, initIDs, isModal, isResizable, setModal, setResizable, setTitle, show
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, eventEnabled, finalize, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postProcessKeyEvent, postWindowEvent, preProcessKeyEvent, processEvent, readObject, removeOwnedWindow, removeWindowListener, setCursor, setFocusOwner, setWarningString, toBack, toFront, transferFocus, writeObject
 
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, removeNotify, 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, remove, 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
 

Field Detail

content_pane

protected java.awt.Container content_pane

top_both_readout_panel

protected javax.swing.JPanel top_both_readout_panel

top_serial_readout_panel

protected javax.swing.JPanel top_serial_readout_panel

bottom_readout_panel

protected javax.swing.JPanel bottom_readout_panel

parent

protected SetupDialog parent

binning_parameters_combo_Bx

protected javax.swing.JComboBox binning_parameters_combo_Bx

binning_parameters_combo_By

protected javax.swing.JComboBox binning_parameters_combo_By

number_of_readout_channels_combo_box

protected javax.swing.JComboBox number_of_readout_channels_combo_box

apply_button

private javax.swing.JButton apply_button

apply_all_button

private javax.swing.JButton apply_all_button

single_readout_A_icon

protected javax.swing.Icon single_readout_A_icon

single_readout_B_icon

protected javax.swing.Icon single_readout_B_icon

single_readout_C_icon

protected javax.swing.Icon single_readout_C_icon

single_readout_D_icon

protected javax.swing.Icon single_readout_D_icon

dual_readout_serial_L_icon

protected javax.swing.Icon dual_readout_serial_L_icon

dual_readout_serial_R_icon

protected javax.swing.Icon dual_readout_serial_R_icon

dual_readout_serial_LR_icon

protected javax.swing.Icon dual_readout_serial_LR_icon

dual_readout_AB_icon

protected javax.swing.Icon dual_readout_AB_icon

dual_readout_CD_icon

protected javax.swing.Icon dual_readout_CD_icon

quad_readout_icon

protected javax.swing.Icon quad_readout_icon

readout_pics_label

protected javax.swing.JLabel readout_pics_label

both_readout_pics_label

protected javax.swing.JLabel both_readout_pics_label

serial_readout_pics_label

protected javax.swing.JLabel serial_readout_pics_label

nc_label

protected javax.swing.JLabel nc_label

range_of_nc_label

protected javax.swing.JLabel range_of_nc_label

configuration_code_label

protected javax.swing.JLabel configuration_code_label

supported_capabilities_label

protected javax.swing.JLabel supported_capabilities_label

supported_bit_description_label

protected javax.swing.JLabel supported_bit_description_label

linear_coeff_description_label1

protected javax.swing.JLabel linear_coeff_description_label1

linear_coeff_description_label2

protected javax.swing.JLabel linear_coeff_description_label2

linear_coeff1_label

protected javax.swing.JLabel linear_coeff1_label

linear_coeff2_label

protected javax.swing.JLabel linear_coeff2_label

channel_label

protected javax.swing.JLabel[] channel_label

image_size_ncols_txtfld

protected VTextField image_size_ncols_txtfld

image_size_nrows_txtfld

protected VTextField image_size_nrows_txtfld

derived_array_size_x_txtfld

protected VTextField derived_array_size_x_txtfld

derived_array_size_y_txtfld

protected VTextField derived_array_size_y_txtfld

readout_status_txtfld

protected VTextField readout_status_txtfld

readout_status_serial_txtfld

protected VTextField readout_status_serial_txtfld

readout_status_parallel_txtfld

protected VTextField readout_status_parallel_txtfld

nc_txtfld

protected VTextField nc_txtfld

temperature_txtfld

protected VTextField temperature_txtfld

linear_coeff1_txtfld

protected VTextField linear_coeff1_txtfld

linear_coeff2_txtfld

protected VTextField linear_coeff2_txtfld

channel_txtfld

protected VTextField[] channel_txtfld

single_readout_A_rbutton

protected javax.swing.JRadioButton single_readout_A_rbutton

single_readout_B_rbutton

protected javax.swing.JRadioButton single_readout_B_rbutton

single_readout_C_rbutton

protected javax.swing.JRadioButton single_readout_C_rbutton

single_readout_D_rbutton

protected javax.swing.JRadioButton single_readout_D_rbutton

dual_readout_AB_rbutton

protected javax.swing.JRadioButton dual_readout_AB_rbutton

dual_readout_CD_rbutton

protected javax.swing.JRadioButton dual_readout_CD_rbutton

quad_readout_ABCD_rbutton

protected javax.swing.JRadioButton quad_readout_ABCD_rbutton

serial_readout_L_rbutton

protected javax.swing.JRadioButton serial_readout_L_rbutton

serial_readout_R_rbutton

protected javax.swing.JRadioButton serial_readout_R_rbutton

serial_readout_LR_rbutton

protected javax.swing.JRadioButton serial_readout_LR_rbutton

gain_1_rbutton

protected javax.swing.JRadioButton gain_1_rbutton

gain_2_rbutton

protected javax.swing.JRadioButton gain_2_rbutton

gain_475_rbutton

protected javax.swing.JRadioButton gain_475_rbutton

gain_95_rbutton

protected javax.swing.JRadioButton gain_95_rbutton

slow_speed_rbutton

protected javax.swing.JRadioButton slow_speed_rbutton

fast_speed_rbutton

protected javax.swing.JRadioButton fast_speed_rbutton

mpp_chkbox

protected javax.swing.JCheckBox mpp_chkbox

number_of_coadder_chkbox

protected javax.swing.JCheckBox number_of_coadder_chkbox

download_coadder_board_chkbox

protected javax.swing.JCheckBox download_coadder_board_chkbox

array_temperature_chkbox

protected javax.swing.JCheckBox array_temperature_chkbox

supported_capabilities_txtarea

protected javax.swing.JTextArea supported_capabilities_txtarea

number_of_controller_config_windows

protected int number_of_controller_config_windows

image_ncols

protected int image_ncols

image_nrows

protected int image_nrows

derived_size_x

protected int derived_size_x

derived_size_y

protected int derived_size_y

config_data

protected int config_data

controller_config_tabbed_pane

protected javax.swing.JTabbedPane controller_config_tabbed_pane

menu_bar

private javax.swing.JMenuBar menu_bar

controller_config_listener

protected ControllerConfigListener controller_config_listener

font

private java.awt.Font font

summary_font

private java.awt.Font summary_font
Constructor Detail

ControllerConfigDialog

public ControllerConfigDialog(SetupDialog parent)
Class constructor. The window is created in this method.
Parameters:
owner - The window from which this dialog window was opened.
Method Detail

set_config_data

public void set_config_data(int config_data)
This method sets ControllerConfigDialog to the certain bit values.
Parameters:
config_data - the controller configuration bits

create_tabbed_pane

private javax.swing.JTabbedPane create_tabbed_pane()
Creates the "tabbed" panels portion of the window.
Returns:
The created "tabbed pane" is returned.
See Also:
JTabbedPane

create_button_panel

private javax.swing.JPanel create_button_panel()
This method creates the panel that contains the apply button.
Returns:
Returns the panel that contains the apply button.
See Also:
JPanel

create_mpp_panel

private javax.swing.JPanel create_mpp_panel()
This method creates the MPP (Multi-pin phased) control panel.
Returns:
Returns the panel that contains the MPP controls.
See Also:
JPanel

create_summary_panel

private javax.swing.JPanel create_summary_panel()
This method creates the summary ("Configuration") tab panel.
Returns:
Returns the panel.
See Also:
JPanel

create_binning_panel

private javax.swing.JPanel create_binning_panel()
This method creates the panel that contains all the user input components.
Returns:
Returns the panel that contains all the user input components.
See Also:
JPanel

create_top_readout_both_panel

private javax.swing.JPanel create_top_readout_both_panel()
This method creates the top amp split options panel for the dialog window when both serial and parallel are true.
Returns:
Returns the constructed top amp split options panel as a JPanel class.
See Also:
JPanel

create_top_readout_serial_panel

private javax.swing.JPanel create_top_readout_serial_panel()
This method creates the top amp split options panel for the dialog window when only serial is true.
Returns:
Returns the constructed top amp split options panel as a JPanel class.
See Also:
JPanel

create_bottom_readout_panel

private javax.swing.JPanel create_bottom_readout_panel()
This method creates the bottom amp split options panel for this dialog window.
Returns:
Returns the constructed bottom amp split options panel as a JPanel class.
See Also:
JPanel

create_readout_both_panel

private javax.swing.JPanel create_readout_both_panel()
This method creates the serial/parallel readout panel.
Returns:
Returns the created panel.
See Also:
JPanel

create_serial_readout_panel

private javax.swing.JPanel create_serial_readout_panel()
This method creates the serial readout panel.
Returns:
Returns the created panel.
See Also:
JPanel

create_coadder_panel

private javax.swing.JPanel create_coadder_panel()
This method creates the Coadder panel.
Returns:
Returns the created panel.
See Also:
JPanel

create_gain_panel

private javax.swing.JPanel create_gain_panel()
This method creates the Gain panel.
Returns:
Returns the created panel.
See Also:
JPanel

create_video_offsets_panel

private javax.swing.JPanel create_video_offsets_panel()
This method creates the Video Offsets panel.
Returns:
Returns the created panel.
See Also:
JPanel

create_temperature_panel

private javax.swing.JPanel create_temperature_panel()
This method creates a new tabbed pane - Temperature.
Returns:
Returns the tabbed pane.
See Also:
JPanel

create_menu_bar

private javax.swing.JMenuBar create_menu_bar()
This method creates the menu bar.
Returns:
Returns the menubar.
See Also:
JMenuBar

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

set_supported_text

private void set_supported_text(java.lang.String text)
This method sets the supported/unsupported configuration text to the specified string, which is constructed as follows: bit# text
Parameters:
bit - The bit number of the supported/unsupported configuration.
text - The string to set.
supported - Determines whether the text goes into the supported (true) or unsupported (false) text areas.

set_apply_button_text

public void set_apply_button_text(java.lang.String text)
This method sets the apply button text to the specified string.
Parameters:
text - The string to set the apply button text to.
See Also:
JButton

set_apply_all_button_text

public void set_apply_all_button_text(java.lang.String text)
This method sets the apply all button text to the specified string.
Parameters:
text - The string to set the apply all button text to.
See Also:
JButton

clickApplyAll

public void clickApplyAll()
This method performs a software "click" of the "Apply All" button. It does the same thing as if the button were "clicked" by a user with a mouse.
See Also:
JButton