Class NIFGUI

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 NIFGUI
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, java.util.EventListener, javax.accessibility.Accessible

public class NIFGUI
extends javax.swing.JPanel
implements java.lang.Runnable, java.awt.event.ActionListener, java.awt.event.ItemListener

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
protected static java.lang.String imagepath
           
protected  java.lang.String newline
           
protected  javax.swing.JTextArea output
           
protected  javax.swing.JScrollPane scrollPane
           
protected  ViewerProxy viewer
           
protected  int visitActiveButton
           
protected  java.lang.String visitBinPath
           
protected  javax.swing.JButton visitButton1
           
protected  javax.swing.JButton visitButton2
           
protected  javax.swing.JButton visitButton3
           
protected  javax.swing.ImageIcon visitButtonIcon1
           
protected  javax.swing.ImageIcon visitButtonIcon2
           
protected  javax.swing.ImageIcon visitButtonIcon3
           
protected  java.lang.String visitDatabase
           
protected  int visitImageCount
           
protected  int visitImageHeight
           
protected  int visitImageWidth
           
protected  boolean visitLaunched
           
protected  boolean visitOpenDatabaseAtStart
           
protected  java.lang.String visitPlotVar
           
protected  boolean visitVisible
           
 
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
NIFGUI(java.lang.String[] args)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  void addOutput(java.lang.String s)
           
protected  void ButtonClicked1()
           
protected  void ButtonClicked2()
           
protected  void ButtonClicked3()
           
protected  java.lang.String ButtonFileName(int button)
           
 java.awt.Container createContentPane()
           
 javax.swing.JMenuBar createMenuBar()
           
protected  void DeleteAllButWindow1()
           
protected  void DeleteAllPlots()
           
protected  boolean EnsureVisItExists()
           
protected  java.lang.String getClassName(java.lang.Object o)
           
protected static javax.swing.ImageIcon GetImageIcon(java.lang.String path)
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
static void main(java.lang.String[] args)
           
protected  void OpenFile()
           
protected  void printUsage()
           
protected  void Quit()
           
 void run()
           
protected  void SaveWindow(java.lang.String imageName)
           
protected  void SetupPlots1()
           
protected  void SetupPlots2()
           
protected  void SetupPlots3()
           
protected  void UpdateAllButtons()
           
protected  void UpdateButton1()
           
protected  void UpdateButton2()
           
protected  void UpdateButton3()
           
 
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

newline

protected java.lang.String newline

imagepath

protected static java.lang.String imagepath

output

protected javax.swing.JTextArea output

scrollPane

protected javax.swing.JScrollPane scrollPane

visitButtonIcon1

protected javax.swing.ImageIcon visitButtonIcon1

visitButtonIcon2

protected javax.swing.ImageIcon visitButtonIcon2

visitButtonIcon3

protected javax.swing.ImageIcon visitButtonIcon3

visitButton1

protected javax.swing.JButton visitButton1

visitButton2

protected javax.swing.JButton visitButton2

visitButton3

protected javax.swing.JButton visitButton3

viewer

protected ViewerProxy viewer

visitLaunched

protected boolean visitLaunched

visitVisible

protected boolean visitVisible

visitBinPath

protected java.lang.String visitBinPath

visitDatabase

protected java.lang.String visitDatabase

visitPlotVar

protected java.lang.String visitPlotVar

visitImageWidth

protected int visitImageWidth

visitImageHeight

protected int visitImageHeight

visitImageCount

protected int visitImageCount

visitOpenDatabaseAtStart

protected boolean visitOpenDatabaseAtStart

visitActiveButton

protected int visitActiveButton
Constructor Detail

NIFGUI

public NIFGUI(java.lang.String[] args)
Method Detail

printUsage

protected void printUsage()

createMenuBar

public javax.swing.JMenuBar createMenuBar()

createContentPane

public java.awt.Container createContentPane()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

ButtonFileName

protected java.lang.String ButtonFileName(int button)

EnsureVisItExists

protected boolean EnsureVisItExists()

SaveWindow

protected void SaveWindow(java.lang.String imageName)

DeleteAllPlots

protected void DeleteAllPlots()

DeleteAllButWindow1

protected void DeleteAllButWindow1()

ButtonClicked1

protected void ButtonClicked1()

SetupPlots1

protected void SetupPlots1()

UpdateButton1

protected void UpdateButton1()

ButtonClicked2

protected void ButtonClicked2()

SetupPlots2

protected void SetupPlots2()

UpdateButton2

protected void UpdateButton2()

ButtonClicked3

protected void ButtonClicked3()

SetupPlots3

protected void SetupPlots3()

UpdateButton3

protected void UpdateButton3()

UpdateAllButtons

protected void UpdateAllButtons()

addOutput

protected void addOutput(java.lang.String s)

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

getClassName

protected java.lang.String getClassName(java.lang.Object o)

OpenFile

protected void OpenFile()

Quit

protected void Quit()

GetImageIcon

protected static javax.swing.ImageIcon GetImageIcon(java.lang.String path)

run

public void run()
Specified by:
run in interface java.lang.Runnable

main

public static void main(java.lang.String[] args)