Class ActionBase
java.lang.Object
gov.nih.mipav.model.scripting.actions.ActionBase
- All Implemented Interfaces:
ScriptableActionInterface
- Direct Known Subclasses:
ActionCollectGarbage,ActionExit,ActionImageProcessorBase,ActionStopMipav
A base class for all non-algorithmic (not JDialog*) script actions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the script action command string for this action.static final StringgetActionName(Class actionClass) Returns the script command string for an action.abstract voidIf a script is being recorded and the action (read: algorithm) is done, add an entry for this action.booleanisScript()abstract voidscriptRun(ParameterTable parameters) Sets up the action dialog state and then executes it.voidsetIsScript(boolean isScript)
-
Field Details
-
isScript
protected boolean isScript
-
-
Constructor Details
-
ActionBase
public ActionBase()
-
-
Method Details
-
insertScriptLine
public abstract void insertScriptLine()If a script is being recorded and the action (read: algorithm) is done, add an entry for this action.- Specified by:
insertScriptLinein interfaceScriptableActionInterface
-
scriptRun
Sets up the action dialog state and then executes it.- Specified by:
scriptRunin interfaceScriptableActionInterface- Parameters:
parameters- Table of parameters for the script to use.
-
getActionName
Returns the script action command string for this action.- Returns:
- The script command which should be used for this action (e.g., Clone for ActionClone).
-
getActionName
Returns the script command string for an action.- Parameters:
actionClass- The class to find the script command string for.- Returns:
- The script command which should be used for the given class (e.g., Clone for ActionClone).
-
setIsScript
public void setIsScript(boolean isScript) -
isScript
public boolean isScript()
-