Package moss

Class MoSS

All Implemented Interfaces:
ItemListener, ImageObserver, MenuContainer, Serializable, Runnable, EventListener, Accessible, ChangeListener, RootPaneContainer, WindowConstants

public class MoSS extends JFrame implements Runnable, ChangeListener, ItemListener
Graphical user interface for the molecular substructure miner.
Since:
2006.07.13
See Also:
  • Field Details

  • Constructor Details

    • MoSS

      public MoSS()
      Create a user interface dialog box.
      Since:
      2006.07.13 (Christian Borgelt)
    • MoSS

      public MoSS(Component owner)
      Create a user interface for the molecular substructure miner.
      Parameters:
      owner - the owner of the window to create
      Since:
      2006.07.13 (Christian Borgelt)
    • MoSS

      public MoSS(Component owner, boolean isProg)
      Create a user interface for the molecular substructure miner.
      Parameters:
      owner - the owner of the window to create
      isProg - whether started as a stand-alone program
      Since:
      2006.07.13 (Christian Borgelt)
  • Method Details

    • run

      public void run()
      Create the user interface dialog box.

      Following the recommendations in the Java tutorial, the user interface is created in the "run" method, which is invoked from the event queue, in order to avoid problems with threads.

      Specified by:
      run in interface Runnable
      Since:
      2006.07.13 (Christian Borgelt)
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Handle the state change of the ring marking check box.
      Specified by:
      stateChanged in interface ChangeListener
      Parameters:
      e - the change event to react to
      Since:
      2006.07.13 (Christian Borgelt)
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      Handle the state change of the support type combo box.
      Specified by:
      itemStateChanged in interface ItemListener
      Parameters:
      e - the change event to react to
      Since:
      2007.07.06 (Christian Borgelt)
    • getFileChooser

      protected JFileChooser getFileChooser()
      Get the file chooser (create if necessary).
      Returns:
      the file chooser
      Since:
      2006.07.15 (Christian Borgelt)
    • getFileName

      protected void getFileName(String title, JTextField text)
      Get a file name and store it in a text field.
      Parameters:
      title - the title of the file chooser
      text - the text field in which to store the file name
      Since:
      2007.02.15 (Christian Borgelt)
    • setGraphsFile

      public void setGraphsFile(File file)
      Set the graphs/molecules file.
      Parameters:
      file - the graphs/molecules file to set
      Since:
      2014.09.25 (Christian Borgelt)
    • setSubsFile

      public void setSubsFile(File file)
      Set the substructure output file.
      Parameters:
      file - the substructure output file to set
      Since:
      2014.09.25 (Christian Borgelt)
    • setIdsFile

      public void setIdsFile(File file)
      Set the identifier output file.
      Parameters:
      file - the identifier output file to set
      Since:
      2014.09.25 (Christian Borgelt)
    • execute

      public void execute()
      Execute the substructure search, that is, start a miner.
      Since:
      2006.07.13 (Christian Borgelt)
    • main

      public static void main(String[] args)
      Main function to invoke the user interface as a stand-alone program.
      Parameters:
      args - the command line arguments
      Since:
      2006.07.13 (Christian Borgelt)