cct.gaussian.ui
Class GaussianInputEditorFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by cct.gaussian.ui.GaussianInputEditorFrame
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class GaussianInputEditorFrame
extends javax.swing.JFrame
implements java.awt.event.ActionListener

Title: Gasussian Utility Classes

Description: Computational Chemistry Toolkit

Copyright: Copyright (c) 2006

Company: ANU

See Also:
Serialized Form

Nested Class Summary
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_insertEntryButton_actionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_jButton6_actionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_jMenuFileExit_ActionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_jMenuHelpAbout_ActionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_jMenuItem1_actionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_nextStepButton_actionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_openFileButton_actionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_openSelectedFileButton_actionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_previousStepButton_actionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_resetButton_actionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_saveFileButton_actionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_saveStepButton_actionAdapter
           
(package private)  class GaussianInputEditorFrame.GaussianInputEditorFrame_stepsComboBox_itemAdapter
           
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  java.util.ArrayList additionalEntries
           
(package private)  javax.swing.ImageIcon arrowDown
           
(package private)  javax.swing.ImageIcon arrowDownFaded
           
(package private)  javax.swing.ImageIcon arrowUp
           
(package private)  javax.swing.ImageIcon arrowUpFaded
           
(package private)  java.awt.BorderLayout borderLayout1
           
(package private)  java.awt.BorderLayout borderLayout2
           
(package private)  java.awt.CardLayout cardLayout1
           
(package private)  javax.swing.JPanel cardPanel
           
(package private)  javax.swing.JPanel contentPane
           
(package private)  int count
           
(package private)  javax.swing.JMenuItem decreaseMenuItem
           
(package private) static java.lang.String defaultFontName
           
(package private)  javax.swing.JButton deleteEntryButton
           
(package private)  javax.swing.ImageIcon deleteStep
           
(package private)  java.util.ArrayList entryLabels
           
(package private)  javax.swing.JComboBox fileComboBox
           
(package private)  java.lang.String fileName
           
(package private)  java.awt.FlowLayout flowLayout2
           
(package private)  java.lang.String fontName
           
(package private) static java.lang.String FontNameKey
           
(package private)  FontSelectorDialog fontSelector
           
(package private) static java.lang.String FontSizeKey
           
(package private) static java.lang.String FontStyleKey
           
(package private)  GJFParserInterface gjfParser
           
(package private)  javax.swing.JPanel goStepsPanel
           
(package private)  java.awt.GridBagLayout gridBagLayout1
           
(package private)  java.awt.GridBagLayout gridBagLayout4
           
(package private)  javax.swing.ImageIcon image1
           
(package private)  javax.swing.ImageIcon image2
           
(package private)  javax.swing.ImageIcon image3
           
(package private)  java.lang.String images16x16Path
           
(package private)  java.lang.String images32x32Path
           
(package private)  javax.swing.JMenuItem increaseMenuItem
           
(package private)  javax.swing.JButton insertEntryButton
           
(package private)  javax.swing.ImageIcon insertNewStep
           
(package private)  javax.swing.JButton jButton3
           
(package private)  javax.swing.JLabel jLabel1
           
(package private)  javax.swing.JLabel jLabel2
           
(package private)  javax.swing.JLabel jLabel3
           
(package private)  javax.swing.JMenuBar jMenuBar1
           
(package private)  javax.swing.JMenu jMenuFile
           
(package private)  javax.swing.JMenuItem jMenuFileExit
           
(package private)  javax.swing.JMenu jMenuHelp
           
(package private)  javax.swing.JMenuItem jMenuHelpAbout
           
(package private)  javax.swing.JMenuItem jMenuItem1
           
(package private)  javax.swing.JMenuItem jMenuItem4
           
(package private)  javax.swing.JToolBar jToolBar
           
(package private)  javax.swing.JPanel mainPanel
           
(package private)  java.awt.Font newFont
           
(package private)  javax.swing.JButton nextStepButton
           
(package private)  int numberOfEntries
           
(package private)  javax.swing.ImageIcon okReturnBack
           
(package private)  javax.swing.ImageIcon openFile
           
(package private)  javax.swing.JButton openFileButton
           
(package private)  javax.swing.JButton openSelectedFileButton
           
(package private)  java.util.prefs.Preferences prefs
           
(package private)  javax.swing.JButton previousStepButton
           
(package private)  java.lang.String protocol
           
(package private)  javax.swing.JButton resetButton
           
 javax.swing.JButton returnBackButton
           
(package private)  javax.swing.ImageIcon saveFile
           
(package private)  javax.swing.JButton saveFileButton
           
(package private)  javax.swing.JButton saveStepButton
           
(package private)  javax.swing.ImageIcon saveStepInFile
           
(package private)  SimpleG03EditorPanel simpleG03EditorPanel1
           
(package private)  int size
           
(package private)  javax.swing.JLabel statusBar
           
(package private)  javax.swing.JComboBox stepsComboBox
           
(package private)  int style
           
(package private)  javax.swing.JPanel topPanel
           
(package private)  javax.swing.JMenu viewMenu
           
(package private)  java.lang.String workingDirectory
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GaussianInputEditorFrame(GJFParserInterface parser)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionEvent)
           
 java.lang.String addMenuItem(java.lang.String menuName, javax.swing.JMenuItem menuItem)
           
 javax.swing.JMenu getFileMenu()
           
 java.lang.String getGJFAsString()
           
 int getSelectedStep()
           
(package private)  SimpleG03EditorPanel getSimpleEditor(int n)
           
 javax.swing.JToolBar getToolBar()
           
(package private)  void insertEntry(SimpleG03EditorPanel sG03, int n)
           
 void insertEntryButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void jButton6_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void jMenuFileExit_actionPerformed(java.awt.event.ActionEvent actionEvent)
          File | Exit action performed.
(package private)  void jMenuHelpAbout_actionPerformed(java.awt.event.ActionEvent actionEvent)
          Help | About action performed.
 void jMenuItem1_actionPerformed(java.awt.event.ActionEvent e)
           
 void nextStepButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void openFileButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void openSelectedFileButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void parseNewFile(java.lang.String gjfFile)
           
 void previousStepButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void removeEntry(int step)
           
 void removeMenuItem(java.lang.String menuName, java.lang.String menuItemName)
           
 void resetButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void resetEntry(SimpleG03EditorPanel sG03)
           
(package private)  void saveFileAs(java.lang.String directory, java.lang.String file_name, java.lang.String text)
           
 void saveFileButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void saveStepButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void setActiveStep(int nstep)
           
(package private)  void setStep(javax.swing.JComboBox cb, int i)
           
 void setupEditor(GJFParserInterface parser)
           
 void setupMolecule(MoleculeInterface mol)
           
 void stepsComboBox_itemStateChanged(java.awt.event.ItemEvent e)
           
 java.lang.String toString()
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

FontNameKey

static java.lang.String FontNameKey

FontSizeKey

static java.lang.String FontSizeKey

FontStyleKey

static java.lang.String FontStyleKey

defaultFontName

static java.lang.String defaultFontName

prefs

java.util.prefs.Preferences prefs

fontSelector

FontSelectorDialog fontSelector

gjfParser

GJFParserInterface gjfParser

numberOfEntries

int numberOfEntries

count

int count

additionalEntries

java.util.ArrayList additionalEntries

entryLabels

java.util.ArrayList entryLabels

fileName

java.lang.String fileName

workingDirectory

java.lang.String workingDirectory

protocol

java.lang.String protocol

images16x16Path

java.lang.String images16x16Path

images32x32Path

java.lang.String images32x32Path

size

int size

style

int style

fontName

java.lang.String fontName

newFont

java.awt.Font newFont

contentPane

javax.swing.JPanel contentPane

borderLayout1

java.awt.BorderLayout borderLayout1

jMenuBar1

javax.swing.JMenuBar jMenuBar1

jMenuFile

javax.swing.JMenu jMenuFile

jMenuFileExit

javax.swing.JMenuItem jMenuFileExit

jMenuHelp

javax.swing.JMenu jMenuHelp

jMenuHelpAbout

javax.swing.JMenuItem jMenuHelpAbout

jToolBar

javax.swing.JToolBar jToolBar

openFileButton

javax.swing.JButton openFileButton

resetButton

javax.swing.JButton resetButton

jButton3

javax.swing.JButton jButton3

image1

javax.swing.ImageIcon image1

image2

javax.swing.ImageIcon image2

image3

javax.swing.ImageIcon image3

statusBar

javax.swing.JLabel statusBar

simpleG03EditorPanel1

SimpleG03EditorPanel simpleG03EditorPanel1

mainPanel

javax.swing.JPanel mainPanel

goStepsPanel

javax.swing.JPanel goStepsPanel

previousStepButton

javax.swing.JButton previousStepButton

nextStepButton

javax.swing.JButton nextStepButton

borderLayout2

java.awt.BorderLayout borderLayout2

arrowUp

javax.swing.ImageIcon arrowUp

arrowUpFaded

javax.swing.ImageIcon arrowUpFaded

arrowDown

javax.swing.ImageIcon arrowDown

arrowDownFaded

javax.swing.ImageIcon arrowDownFaded

deleteStep

javax.swing.ImageIcon deleteStep

insertNewStep

javax.swing.ImageIcon insertNewStep

openFile

javax.swing.ImageIcon openFile

saveFile

javax.swing.ImageIcon saveFile

saveStepInFile

javax.swing.ImageIcon saveStepInFile

okReturnBack

javax.swing.ImageIcon okReturnBack

gridBagLayout4

java.awt.GridBagLayout gridBagLayout4

cardPanel

javax.swing.JPanel cardPanel

topPanel

javax.swing.JPanel topPanel

cardLayout1

java.awt.CardLayout cardLayout1

gridBagLayout1

java.awt.GridBagLayout gridBagLayout1

jLabel1

javax.swing.JLabel jLabel1

stepsComboBox

javax.swing.JComboBox stepsComboBox

flowLayout2

java.awt.FlowLayout flowLayout2

deleteEntryButton

javax.swing.JButton deleteEntryButton

insertEntryButton

javax.swing.JButton insertEntryButton

jLabel2

javax.swing.JLabel jLabel2

jMenuItem1

javax.swing.JMenuItem jMenuItem1

jLabel3

javax.swing.JLabel jLabel3

fileComboBox

javax.swing.JComboBox fileComboBox

openSelectedFileButton

javax.swing.JButton openSelectedFileButton

saveFileButton

javax.swing.JButton saveFileButton

saveStepButton

javax.swing.JButton saveStepButton

returnBackButton

public javax.swing.JButton returnBackButton

viewMenu

javax.swing.JMenu viewMenu

increaseMenuItem

javax.swing.JMenuItem increaseMenuItem

decreaseMenuItem

javax.swing.JMenuItem decreaseMenuItem

jMenuItem4

javax.swing.JMenuItem jMenuItem4
Constructor Detail

GaussianInputEditorFrame

public GaussianInputEditorFrame(GJFParserInterface parser)
Method Detail

getFileMenu

public javax.swing.JMenu getFileMenu()

getToolBar

public javax.swing.JToolBar getToolBar()

jMenuFileExit_actionPerformed

void jMenuFileExit_actionPerformed(java.awt.event.ActionEvent actionEvent)
File | Exit action performed.

Parameters:
actionEvent - ActionEvent

addMenuItem

public java.lang.String addMenuItem(java.lang.String menuName,
                                    javax.swing.JMenuItem menuItem)

removeMenuItem

public void removeMenuItem(java.lang.String menuName,
                           java.lang.String menuItemName)
                    throws java.lang.Exception
Throws:
java.lang.Exception

jMenuHelpAbout_actionPerformed

void jMenuHelpAbout_actionPerformed(java.awt.event.ActionEvent actionEvent)
Help | About action performed.

Parameters:
actionEvent - ActionEvent

openFileButton_actionPerformed

public void openFileButton_actionPerformed(java.awt.event.ActionEvent e)

setupMolecule

public void setupMolecule(MoleculeInterface mol)

parseNewFile

void parseNewFile(java.lang.String gjfFile)
Parameters:
gjfFile - String

setupEditor

public void setupEditor(GJFParserInterface parser)

setStep

void setStep(javax.swing.JComboBox cb,
             int i)

stepsComboBox_itemStateChanged

public void stepsComboBox_itemStateChanged(java.awt.event.ItemEvent e)

previousStepButton_actionPerformed

public void previousStepButton_actionPerformed(java.awt.event.ActionEvent e)

setActiveStep

public void setActiveStep(int nstep)

nextStepButton_actionPerformed

public void nextStepButton_actionPerformed(java.awt.event.ActionEvent e)

jMenuItem1_actionPerformed

public void jMenuItem1_actionPerformed(java.awt.event.ActionEvent e)

jButton6_actionPerformed

public void jButton6_actionPerformed(java.awt.event.ActionEvent e)

resetEntry

void resetEntry(SimpleG03EditorPanel sG03)

removeEntry

void removeEntry(int step)

insertEntryButton_actionPerformed

public void insertEntryButton_actionPerformed(java.awt.event.ActionEvent e)

insertEntry

void insertEntry(SimpleG03EditorPanel sG03,
                 int n)

getSimpleEditor

SimpleG03EditorPanel getSimpleEditor(int n)

saveFileButton_actionPerformed

public void saveFileButton_actionPerformed(java.awt.event.ActionEvent e)

toString

public java.lang.String toString()
Overrides:
toString in class java.awt.Component

getGJFAsString

public java.lang.String getGJFAsString()

saveFileAs

void saveFileAs(java.lang.String directory,
                java.lang.String file_name,
                java.lang.String text)

saveStepButton_actionPerformed

public void saveStepButton_actionPerformed(java.awt.event.ActionEvent e)

openSelectedFileButton_actionPerformed

public void openSelectedFileButton_actionPerformed(java.awt.event.ActionEvent e)

resetButton_actionPerformed

public void resetButton_actionPerformed(java.awt.event.ActionEvent e)

getSelectedStep

public int getSelectedStep()

actionPerformed

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