Package gov.nih.mipav.view.dialogs
Class JDialogRunScriptController
- java.lang.Object
-
- gov.nih.mipav.view.dialogs.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
-
-
Field Summary
Fields Modifier and Type Field Description private JDialogRunScriptModel
model
DOCUMENT ME!private JDialogRunScriptView
view
DOCUMENT ME!
-
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!
-
-
-
Field Detail
-
model
private JDialogRunScriptModel model
DOCUMENT ME!
-
view
private JDialogRunScriptView view
DOCUMENT ME!
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Main event handler for MIPAV scripting tool.- Specified by:
actionPerformed
in interfacejava.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!
-
-