Class JDialogRunScriptController

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener

    public class JDialogRunScriptController
    extends java.lang.Object
    implements java.awt.event.ActionListener
    Version:
    0.1 May 24, 2006
    Author:
    Nathan Pollack -- Contractor (SSAI)
    See Also:
    JDialogRunScriptView, JDialogRunScriptModel
    • Constructor Summary

      Constructors 
      Constructor Description
      JDialogRunScriptController​(java.lang.String scriptFile)
      JDialogRunScriptController Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)
      Main event handler for MIPAV scripting tool.
      private java.lang.String openImageWithFrame​(ScriptImage scriptImage)
      DOCUMENT ME!
      private java.lang.String parseTreeToXML​(javax.swing.tree.TreeNode root)
      DOCUMENT ME!
      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.
      private void populateInitialScriptTree​(java.lang.String scriptFile)
      Creates the tree structure from the parser code.
      private void populateModel​(java.lang.String scriptFile)
      Calls methods to populate model and direct view to draw itself.
      private void runScript()
      DOCUMENT ME!
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JDialogRunScriptController

        public JDialogRunScriptController​(java.lang.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 Detail

      • actionPerformed

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

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

        private java.lang.String parseTreeToXML​(javax.swing.tree.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​(java.lang.String scriptFile)
        Creates the tree structure from the parser code.
        Parameters:
        scriptFile - The name of the script file to use
      • populateModel

        private void populateModel​(java.lang.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!