Class ActionBase

java.lang.Object
gov.nih.mipav.model.scripting.actions.ActionBase
All Implemented Interfaces:
ScriptableActionInterface
Direct Known Subclasses:
ActionCollectGarbage, ActionExit, ActionImageProcessorBase, ActionStopMipav

public abstract class ActionBase extends Object implements ScriptableActionInterface
A base class for all non-algorithmic (not JDialog*) script actions.
  • 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:
      insertScriptLine in interface ScriptableActionInterface
    • scriptRun

      public abstract void scriptRun(ParameterTable parameters)
      Sets up the action dialog state and then executes it.
      Specified by:
      scriptRun in interface ScriptableActionInterface
      Parameters:
      parameters - Table of parameters for the script to use.
    • getActionName

      public String 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

      public static final String getActionName(Class actionClass)
      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()