com.isti.jplotresp
Class RespEntryPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.isti.jplotresp.RespEntryPanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class RespEntryPanel
extends javax.swing.JPanel

Class RespEntryPanel implements the entry panel.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 FilteredJTextField b62XValueTextField
           
 RespTimePanel beginTimePanel
           
 javax.swing.JTextField channelTextField
           
protected  IstiDialogUtil dialogUtilObj
           
 FilteredJTextField endStageTextField
           
 RespTimePanel endTimePanel
           
 javax.swing.JRadioButton filenameRadioButton
           
 javax.swing.JTextField filenameTextField
           
 javax.swing.JComboBox frequencySpacingComboBox
           
 javax.swing.JCheckBox headersCheckBox
           
static java.lang.String HELP_FNAME
           
 javax.swing.JCheckBox interpInputCheckBox
           
 javax.swing.JCheckBox interpOutputCheckBox
           
 javax.swing.JTextField locationTextField
           
 FilteredJTextField maxFreqTextField
           
 FilteredJTextField minFreqTextField
           
 javax.swing.JCheckBox multiOutCheckBox
           
 javax.swing.JCheckBox multiSvrCheckBox
           
 javax.swing.JTextField networkTextField
           
 FilteredJTextField numFreqsTextField
           
 javax.swing.JTextField outputDirectoryTextField
           
 PlotDisplayOptionPanel plotDisplayOptionPanel
           
 javax.swing.JComboBox responseTypeComboBox
           
 javax.swing.JRadioButton serverRadioButton
           
 javax.swing.JTextField serverTextField
           
 javax.swing.JCheckBox showInputCheckBox
           
 FilteredJTextField startStageTextField
           
 javax.swing.JTextField stationTextField
           
 FilteredJTextField tensionTextField
           
 javax.swing.JCheckBox totalSensitCheckBox
           
 javax.swing.JComboBox unitsComboBox
           
 javax.swing.JCheckBox unwrapPhaseCheckBox
           
 javax.swing.JCheckBox useDelayCheckBox
           
 javax.swing.JCheckBox verboseCheckBox
           
protected  ViewHTMLPanelHandler viewHTMLPanelHandler
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
RespEntryPanel(javax.swing.JTabbedPane tabbedPaneObj, PlotRun plotRunObj, javax.swing.JButton quitButton)
          Construct the entry panel.
 
Method Summary
protected  void addTabbedPane()
          Add the panel to the tabbed pane
protected  void closeAllPlots()
          Close all plots.
protected  void exitCleanup()
          Perform cleanup operations before program termination.
 java.io.PrintStream getConsoleOut()
          Get the console output.
static java.lang.String getCurrentSelection(javax.swing.JFileChooser fc)
          Gets the current selection.
 java.awt.Component[] getTabKeyCompsArray()
          Returns an array of the GUI components for which the 'Enter' key should be converted to the 'Tab' key.
(package private)  void outputDirectoryBrowseButton_actionPerformed(java.awt.event.ActionEvent e)
          Output directory browse button was pressed
protected  void processAndOutput(boolean plotFlag)
          Process parameters and generate output.
protected  void processAndOutputCompleted(boolean returnedFlag)
          Cleanup that is done after processing is completed.
protected  void removeConsolePanel()
          Remove the Console Panel from the tabbed pane.
protected  void removeTabbedPane()
          Remove the panel from the tabbed pane
protected  void selectEntryPanel()
          Select the entry panel on the tabbed pane.
static void setCurrentSelection(javax.swing.JFileChooser fc, java.lang.String currentFile)
          Sets the current selection to be used when the dialog is shown
 void setInitialFocus()
          Requests that the "Network:" text entry field have the keyboard focus.
 void showFileDialog(java.lang.String nameStr, java.lang.String titleStr)
          Displays the specified HTML file in a dialog window.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HELP_FNAME

public static final java.lang.String HELP_FNAME
See Also:
Constant Field Values

networkTextField

public final javax.swing.JTextField networkTextField

stationTextField

public final javax.swing.JTextField stationTextField

locationTextField

public final javax.swing.JTextField locationTextField

channelTextField

public final javax.swing.JTextField channelTextField

minFreqTextField

public final FilteredJTextField minFreqTextField

maxFreqTextField

public final FilteredJTextField maxFreqTextField

numFreqsTextField

public final FilteredJTextField numFreqsTextField

beginTimePanel

public final RespTimePanel beginTimePanel

endTimePanel

public final RespTimePanel endTimePanel

multiOutCheckBox

public final javax.swing.JCheckBox multiOutCheckBox

filenameRadioButton

public final javax.swing.JRadioButton filenameRadioButton

serverRadioButton

public final javax.swing.JRadioButton serverRadioButton

filenameTextField

public final javax.swing.JTextField filenameTextField

serverTextField

public final javax.swing.JTextField serverTextField

startStageTextField

public final FilteredJTextField startStageTextField

endStageTextField

public final FilteredJTextField endStageTextField

verboseCheckBox

public final javax.swing.JCheckBox verboseCheckBox

headersCheckBox

public final javax.swing.JCheckBox headersCheckBox

useDelayCheckBox

public final javax.swing.JCheckBox useDelayCheckBox

showInputCheckBox

public final javax.swing.JCheckBox showInputCheckBox

multiSvrCheckBox

public final javax.swing.JCheckBox multiSvrCheckBox

unwrapPhaseCheckBox

public final javax.swing.JCheckBox unwrapPhaseCheckBox

totalSensitCheckBox

public final javax.swing.JCheckBox totalSensitCheckBox

interpOutputCheckBox

public final javax.swing.JCheckBox interpOutputCheckBox

interpInputCheckBox

public final javax.swing.JCheckBox interpInputCheckBox

b62XValueTextField

public final FilteredJTextField b62XValueTextField

tensionTextField

public final FilteredJTextField tensionTextField

unitsComboBox

public final javax.swing.JComboBox unitsComboBox

frequencySpacingComboBox

public final javax.swing.JComboBox frequencySpacingComboBox

responseTypeComboBox

public final javax.swing.JComboBox responseTypeComboBox

outputDirectoryTextField

public final javax.swing.JTextField outputDirectoryTextField

plotDisplayOptionPanel

public final PlotDisplayOptionPanel plotDisplayOptionPanel

dialogUtilObj

protected final IstiDialogUtil dialogUtilObj

viewHTMLPanelHandler

protected final ViewHTMLPanelHandler viewHTMLPanelHandler
Constructor Detail

RespEntryPanel

public RespEntryPanel(javax.swing.JTabbedPane tabbedPaneObj,
                      PlotRun plotRunObj,
                      javax.swing.JButton quitButton)
Construct the entry panel.

Parameters:
tabbedPaneObj - is the JTabbedPane for the entry panel.
plotRunObj - the calling 'PlotRun' object.
quitButton - a "Quit" button to be displayed, or null for none.
Method Detail

getConsoleOut

public java.io.PrintStream getConsoleOut()
Get the console output.

Returns:
the console output printstream.

addTabbedPane

protected void addTabbedPane()
Add the panel to the tabbed pane


removeConsolePanel

protected void removeConsolePanel()
Remove the Console Panel from the tabbed pane.


removeTabbedPane

protected void removeTabbedPane()
Remove the panel from the tabbed pane


selectEntryPanel

protected void selectEntryPanel()
Select the entry panel on the tabbed pane.


getTabKeyCompsArray

public java.awt.Component[] getTabKeyCompsArray()
Returns an array of the GUI components for which the 'Enter' key should be converted to the 'Tab' key.

Returns:
An array of components.

processAndOutput

protected void processAndOutput(boolean plotFlag)
Process parameters and generate output.

Parameters:
plotFlag - a boolean where true indicates output should be plotted.

processAndOutputCompleted

protected void processAndOutputCompleted(boolean returnedFlag)
Cleanup that is done after processing is completed.

Parameters:
returnedFlag - return flag from JEvalResp.

setInitialFocus

public void setInitialFocus()
Requests that the "Network:" text entry field have the keyboard focus.


exitCleanup

protected void exitCleanup()
Perform cleanup operations before program termination.


closeAllPlots

protected void closeAllPlots()
Close all plots.


getCurrentSelection

public static java.lang.String getCurrentSelection(javax.swing.JFileChooser fc)
Gets the current selection.

Parameters:
fc - file chooser.
Returns:
the current selection.

setCurrentSelection

public static void setCurrentSelection(javax.swing.JFileChooser fc,
                                       java.lang.String currentFile)
Sets the current selection to be used when the dialog is shown

Parameters:
fc - file chooser.
currentFile - current file selection

outputDirectoryBrowseButton_actionPerformed

void outputDirectoryBrowseButton_actionPerformed(java.awt.event.ActionEvent e)
Output directory browse button was pressed

Parameters:
e - key event

showFileDialog

public void showFileDialog(java.lang.String nameStr,
                           java.lang.String titleStr)
Displays the specified HTML file in a dialog window.

Parameters:
nameStr - the file name string or menu name string.
titleStr - the title to use.