Package ffx.ui

Class UIFileOpener

java.lang.Object
ffx.ui.UIFileOpener
All Implemented Interfaces:
FileOpener, Runnable

public class UIFileOpener extends Object implements FileOpener
The UIFileOpener class opens a file into Force Field X using a filter from the ffx.potential.parsers package. To avoid freezing the FFX GUI, it implements the FileOpener interface, which extends Runnable.
Author:
Michael J. Schnieders
  • Method Details

    • getAllAssemblies

      public MolecularAssembly[] getAllAssemblies() throws NullPointerException
      Returns all MolecularAssemblys in the user interface hierarchy.
      Specified by:
      getAllAssemblies in interface FileOpener
      Returns:
      All MolecularAssembly objects stored by the hierarchy.
      Throws:
      NullPointerException - If hierarchy has a null or empty list of assemblies.
    • getAllProperties

      public org.apache.commons.configuration2.CompositeConfiguration[] getAllProperties()
      Returns the properties of all FFXSystems in the hierarchy.
      Specified by:
      getAllProperties in interface FileOpener
      Returns:
      Properties for all systems.
    • getAssembly

      public MolecularAssembly getAssembly() throws NullPointerException
      Returns the active MolecularAssembly from the user interface hierarchy.
      Specified by:
      getAssembly in interface FileOpener
      Returns:
      Active MolecularAssembly
      Throws:
      NullPointerException - If no active MolecularAssembly
    • getProperties

      public org.apache.commons.configuration2.CompositeConfiguration getProperties()
      Returns the properties of the hierarchy's active FFXSystem.
      Specified by:
      getProperties in interface FileOpener
      Returns:
      Active properties
    • run

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