public class Engine.BasicOperations extends java.lang.Object implements GuiListener
Constructor and Description |
---|
BasicOperations() |
Modifier and Type | Method and Description |
---|---|
void |
addMultilayerPressed() |
void |
doProxySettings() |
void |
exitApplication()
exits the Application, and causes the current settings to be saved
|
boolean |
getComputeAbsoluteValues()
Check if the ComponentView uses absolute values instead of percental values
to compute the lipid distribution.
|
PluginManager |
getPluginManager() |
void |
popUpAttrsDialog() |
void |
popUpChangeSize(java.awt.Point locationOnScreen) |
void |
reloadGeometry()
Called, when its necessary to rebuild all shapes in the mebrane, for
instance when another detail level is chosen.
|
boolean |
restoreMembraneFromPDB(java.lang.String absolutePathOfPDB,
java.lang.String absolutePathOfCm2,
CoordinateTransformationHints overwriteHints,
boolean checkMembraneState)
Restore a membrane from a PDB file with the following options and
wait until the reverse parsing status is returned.
|
boolean |
restoreMembraneFromPDB(java.lang.String absolutePathOfPDB,
java.lang.String absolutePathOfCm2,
CoordinateTransformationHints overwriteHints,
boolean checkMembraneState,
boolean waitForStatus)
Restore a membrane from a PDB file with the following options
(Set optional parameters to null if not needed):
|
boolean |
restoreMembraneFromPDBPressed()
Show the dialog to restore a membrane from a PDB file.
|
void |
setAllEnabled(boolean b) |
void |
setComputeAbsoluteValues(boolean computeAbsoluteValues)
The ComponentView uses absolute values instead of percental values to compute
the lipid distribution.
|
void |
setPercentages(int mode,
int newval,
java.lang.String code,
int domainID)
Set percentages of the ComponentView.
|
void |
startDomainMode(MicroDomain_3D domainToChange) |
void |
userChangedStereoEnable(boolean stereoEnabled) |
void |
userChangedStereoSlider() |
void |
userChoseAnalyzeMembrane() |
void |
userChoseGeneratePDBFile(java.io.File pdbFile)
Called when User chooses to generate a PDB file
(Uses the current membrane if the last opened file was a restored PDB file
called when user chooses to generate the Membrane
|
void |
userChoseGromacsCall()
Called when user chose generate a PDB-File using Gromacs
|
void |
userchoseLoadDB()
called when user chooses to load a DB
|
void |
userChoseLoadMembrane()
Called when user chose to load a Membrane
|
void |
userChoseNewDB()
Called when user chooses to create a new DataBase
|
void |
userChoseNewMembrane()
Called when user chose to create a new Membrane
|
void |
userChosePreviewMembrane(int mode) |
void |
userChoseQuickLoadMembrane(java.io.File file)
Called when user clicked on one of the quickloaditems
|
void |
userChoseQuickSaveMembrane()
Called when user chose to quicksave current Membrane
|
void |
userChoseSaveImage()
Called when user chose to save current Screenshot.
|
void |
userChoseSaveMembrane()
Called when user chose to save a Membrane
|
void |
userChoseSaveTimeProtocol(java.util.Vector<java.lang.String> timeProtocol)
Called when user chose to save a Time Protocol
|
void |
userChoseShowTimeProtocol()
Called when user chose to show the current Algorithm Time Protocol
|
void |
userClicked3DSettings(java.awt.Point location) |
void |
userClickedEditorMode(boolean bright_App) |
void |
userClickedOpenExternal() |
void |
userClickedOpenRCSB()
Invoked when user wants to open the SearchView
|
void |
userClickedOpenRestrictionDialog() |
void |
userClickedUniformBackground() |
public void userChoseNewMembrane()
userChoseNewMembrane
in interface GuiListener
public void userChoseLoadMembrane()
userChoseLoadMembrane
in interface GuiListener
public void userChoseQuickLoadMembrane(java.io.File file)
userChoseQuickLoadMembrane
in interface GuiListener
public void userChoseSaveMembrane()
userChoseSaveMembrane
in interface GuiListener
public void userChoseQuickSaveMembrane()
userChoseQuickSaveMembrane
in interface GuiListener
public void userChoseSaveImage()
userChoseSaveImage
in interface GuiListener
public void userChoseSaveTimeProtocol(java.util.Vector<java.lang.String> timeProtocol)
userChoseSaveTimeProtocol
in interface GuiListener
public void userChoseShowTimeProtocol()
userChoseShowTimeProtocol
in interface GuiListener
public void userChoseNewDB()
userChoseNewDB
in interface GuiListener
public void userchoseLoadDB()
userchoseLoadDB
in interface GuiListener
public void userChoseGeneratePDBFile(java.io.File pdbFile)
userChoseGeneratePDBFile
in interface GuiListener
public void exitApplication()
exitApplication
in interface GuiListener
public void userClickedOpenRCSB()
userClickedOpenRCSB
in interface GuiListener
public void reloadGeometry()
reloadGeometry
in interface GuiListener
public void doProxySettings()
doProxySettings
in interface GuiListener
public void popUpAttrsDialog()
popUpAttrsDialog
in interface GuiListener
public void userChosePreviewMembrane(int mode)
userChosePreviewMembrane
in interface GuiListener
public void userChoseAnalyzeMembrane()
userChoseAnalyzeMembrane
in interface GuiListener
public void userClickedOpenExternal()
userClickedOpenExternal
in interface GuiListener
public void userClicked3DSettings(java.awt.Point location)
userClicked3DSettings
in interface GuiListener
public void userClickedEditorMode(boolean bright_App)
userClickedEditorMode
in interface GuiListener
public void userClickedUniformBackground()
public void popUpChangeSize(java.awt.Point locationOnScreen)
popUpChangeSize
in interface GuiListener
public void setAllEnabled(boolean b)
public void userClickedOpenRestrictionDialog()
userClickedOpenRestrictionDialog
in interface GuiListener
public void startDomainMode(MicroDomain_3D domainToChange)
startDomainMode
in interface GuiListener
public void userChangedStereoEnable(boolean stereoEnabled)
userChangedStereoEnable
in interface GuiListener
public void userChangedStereoSlider()
userChangedStereoSlider
in interface GuiListener
public PluginManager getPluginManager()
getPluginManager
in interface GuiListener
public void addMultilayerPressed()
addMultilayerPressed
in interface GuiListener
public boolean restoreMembraneFromPDBPressed()
restoreMembraneFromPDBPressed
in interface GuiListener
public boolean restoreMembraneFromPDB(java.lang.String absolutePathOfPDB, java.lang.String absolutePathOfCm2, CoordinateTransformationHints overwriteHints, boolean checkMembraneState)
restoreMembraneFromPDB
in interface GuiListener
String
- absolutePathOfPDB mandatory: the absolute path of the PDBString
- absolutePathOfCm2 optional: the absolute path of the Cm2 against which the PDB has to be parsedCoordinateTransformationHints
- overwriteHints optional: the transformation hints containing information about how to transform the membraneboolean
- checkMembraneState mandatory: true if a dialog should appear if there were changes on the membrane, false if the process should be started immediatelypublic boolean restoreMembraneFromPDB(java.lang.String absolutePathOfPDB, java.lang.String absolutePathOfCm2, CoordinateTransformationHints overwriteHints, boolean checkMembraneState, boolean waitForStatus)
String
- absolutePathOfPDB mandatory: the absolute path of the PDBString
- absolutePathOfCm2 optional: the absolute path of the Cm2 against which the PDB has to be parsedCoordinateTransformationHints
- overwriteHints optional: the transformation hints containing information about how to transform the membraneboolean
- checkMembraneState mandatory: true if a dialog should appear if there were changes on the membrane, false if the process should be started immediatelyboolean
- waitForStatus mandatory: forces the program to wait until the reverse parsing thread has finished and reported the statuspublic void setPercentages(int mode, int newval, java.lang.String code, int domainID)
setPercentages
in interface GuiListener
public void setComputeAbsoluteValues(boolean computeAbsoluteValues)
setComputeAbsoluteValues
in interface GuiListener
public boolean getComputeAbsoluteValues()
public void userChoseGromacsCall()