Class AtomSetChooser

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, Runnable, EventListener, Accessible, ChangeListener, TreeSelectionListener, RootPaneContainer, WindowConstants

A JFrame that allows for choosing an Atomset to view.
Author:
René Kanters, University of Richmond
See Also:
  • Constructor Details

    • AtomSetChooser

      public AtomSetChooser(Viewer vwr, JFrame frame)
  • Method Details

    • valueChanged

      public void valueChanged(TreeSelectionEvent e)
      Specified by:
      valueChanged in interface TreeSelectionListener
    • showAtomSetIndex

      protected void showAtomSetIndex(int index, boolean bSetSelectSlider)
      Show an atom set from the indexes array
      Parameters:
      index - The index in the index array
      bSetSelectSlider - If true, updates the selectSlider
    • setIndexes

      protected void setIndexes(DefaultMutableTreeNode node)
      Sets the indexes to the atomSetIndex values of each leaf of the node.
      Parameters:
      node - The node whose leaf's atomSetIndex values should be used
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • saveXYZCollection

      public void saveXYZCollection()
      Saves the currently active collection as a multistep XYZ file.
    • findFrequency

      public void findFrequency(int index, int increment)
      Have the vwr show a particular frame with frequencies if it can be found.
      Parameters:
      index - Starting index where to start looking for frequencies
      increment - Increment value for how to go through the list
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener
    • showProperties

      protected void showProperties(Properties properties)
      Shows the properties in the propertiesPane of the AtomSetChooser window
      Parameters:
      properties - Properties to be shown.
    • showAuxiliaryInfo

      protected void showAuxiliaryInfo(Map<String,Object> auxiliaryInfo)
      Shows the auxiliary information in the propertiesPane of the AtomSetChooser window
      Parameters:
      auxiliaryInfo - Hashtable to be shown.
    • propertyChange

      public void propertyChange(PropertyChangeEvent propertyChangeEvent)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • run

      public void run()
      Specified by:
      run in interface Runnable