Package ffx.ui
Class UIFileOpener
java.lang.Object
ffx.ui.UIFileOpener
- All Implemented Interfaces:
FileOpener
,Runnable
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 Summary
Modifier and TypeMethodDescriptionReturns all MolecularAssemblys in the user interface hierarchy.org.apache.commons.configuration2.CompositeConfiguration[]
Returns the properties of all FFXSystems in the hierarchy.Returns the active MolecularAssembly from the user interface hierarchy.org.apache.commons.configuration2.CompositeConfiguration
Returns the properties of the hierarchy's active FFXSystem.void
run()
-
Method Details
-
getAllAssemblies
Returns all MolecularAssemblys in the user interface hierarchy.- Specified by:
getAllAssemblies
in interfaceFileOpener
- 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 interfaceFileOpener
- Returns:
- Properties for all systems.
-
getAssembly
Returns the active MolecularAssembly from the user interface hierarchy.- Specified by:
getAssembly
in interfaceFileOpener
- 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 interfaceFileOpener
- Returns:
- Active properties
-
run
public void run()- Specified by:
run
in interfaceFileOpener
- Specified by:
run
in interfaceRunnable
-