Package ffx.ui

Class MainPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public final class MainPanel extends JPanel implements ActionListener, ChangeListener
The MainPanel class is the main container for Force Field X, handles file input/output and is used to pass references among the various sub-Panels.
Author:
Michael J. Schnieders
See Also:
  • Field Details

  • Constructor Details

    • MainPanel

      public MainPanel(JFrame f)
      MainPanel Constructor
      Parameters:
      f - Application Frame
    • MainPanel

      public MainPanel()
      Constructor for MainPanel.
  • Method Details

    • about

      public void about()
      about
    • actionPerformed

      public void actionPerformed(ActionEvent evt)

      Handle most File, Selection, Trajectory, Simulation, Window and Help Menu Commands This should probably be partitioned between a few different handlers

      Specified by:
      actionPerformed in interface ActionListener
    • close

      public Thread close()
      Detach the active FSystem's BranchGroup from the Scene and clear that FSystem's data
      Returns:
      a Thread object.
    • close

      public Thread close(FFXSystem closedModel)
      close
      Parameters:
      closedModel - a FFXSystem object.
      Returns:
      a Thread object.
    • exit

      public void exit()
      exit with current exit code (default: 0 (ExitStatus.NORMAL))
    • frame

      public void frame()
      frame
    • getFilter

      public SystemFilter getFilter()
      Return the active SystemFilter.
      Returns:
      the active SystemFilter.
    • getFrame

      public Frame getFrame()
      Getter for the field frame.
      Returns:
      a Frame object.
    • getHierarchy

      public Hierarchy getHierarchy()
      Getter for the field hierarchy.
      Returns:
      a Hierarchy object.
    • getMainMenu

      public MainMenu getMainMenu()
      Getter for the field mainMenu.
      Returns:
      a MainMenu object.
    • getModelingShell

      public ModelingShell getModelingShell()
      Getter for the field modelingShell.
      Returns:
      a ModelingShell object.
    • initialize

      public void initialize()
      initialize
    • merge

      public void merge(MSNode[] nodesToMerge)
      merge
      Parameters:
      nodesToMerge - an array of MSNode objects.
    • open

      public Thread open(File file, String commandDescription)
    • open

      public Thread open(List<File> files, String commandDescription)
    • open

      public Thread open(String name)
      open
      Parameters:
      name - a String object.
      Returns:
      a Thread object.
    • open

      public Thread open(String[] names)
      open
      Parameters:
      names - an array of String objects.
      Returns:
      a Thread object.
    • openWaitUtils

      public MolecularAssembly[] openWaitUtils(String file)
    • reset

      public void reset()
      reset
    • saveKeywordFile

      public void saveKeywordFile(File file)
    • stateChanged

      public void stateChanged(ChangeEvent evt)
      Specified by:
      stateChanged in interface ChangeListener
    • stop

      public void stop()
      stop
    • toString

      public String toString()
      Overrides:
      toString in class Component