Class JDialogRunScriptController

java.lang.Object
gov.nih.mipav.view.dialogs.JDialogRunScriptController
All Implemented Interfaces:
ActionListener, EventListener

public class JDialogRunScriptController extends Object implements ActionListener
Version:
0.1 May 24, 2006
Author:
Nathan Pollack -- Contractor (SSAI)
See Also:
  • Field Details

  • Constructor Details

    • JDialogRunScriptController

      public JDialogRunScriptController(String scriptFile)
      JDialogRunScriptController Constructor.
      Parameters:
      scriptFile - The name of the scriptFile to use , this is a script that has defined the structure of the script the user will populate
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Main event handler for MIPAV scripting tool.
      Specified by:
      actionPerformed in interface ActionListener
      See Also:
    • openImageWithFrame

      private String openImageWithFrame(ScriptImage scriptImage)
      DOCUMENT ME!
      Parameters:
      imageLocation - DOCUMENT ME!
      doMulti - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • parseTreeToXML

      private String parseTreeToXML(TreeNode root)
      DOCUMENT ME!
      Parameters:
      root - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • populateAvailableObjectsLists

      private void populateAvailableObjectsLists()
      Populates image and voi lists by calling ViewUserInterface and getting all images currently open, then getting all open VOIs associated with those images.
    • populateInitialScriptTree

      private void populateInitialScriptTree(String scriptFile)
      Creates the tree structure from the parser code.
      Parameters:
      scriptFile - The name of the script file to use
    • populateModel

      private void populateModel(String scriptFile)
      Calls methods to populate model and direct view to draw itself.
      Parameters:
      scriptFile - The name of the script file to use
    • runScript

      private void runScript()
      DOCUMENT ME!