Package gov.nih.mipav.view.dialogs
Class JDialogRunScriptController
java.lang.Object
gov.nih.mipav.view.dialogs.JDialogRunScriptController
- All Implemented Interfaces:
ActionListener,EventListener
- Version:
- 0.1 May 24, 2006
- Author:
- Nathan Pollack -- Contractor (SSAI)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JDialogRunScriptModelDOCUMENT ME!private JDialogRunScriptViewDOCUMENT ME! -
Constructor Summary
ConstructorsConstructorDescriptionJDialogRunScriptController(String scriptFile) JDialogRunScriptController Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidMain event handler for MIPAV scripting tool.private StringopenImageWithFrame(ScriptImage scriptImage) DOCUMENT ME!private StringparseTreeToXML(TreeNode root) DOCUMENT ME!private voidPopulates image and voi lists by calling ViewUserInterface and getting all images currently open, then getting all open VOIs associated with those images.private voidpopulateInitialScriptTree(String scriptFile) Creates the tree structure from the parser code.private voidpopulateModel(String scriptFile) Calls methods to populate model and direct view to draw itself.private voidDOCUMENT ME!
-
Field Details
-
model
DOCUMENT ME! -
view
DOCUMENT ME!
-
-
Constructor Details
-
JDialogRunScriptController
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
Main event handler for MIPAV scripting tool.- Specified by:
actionPerformedin interfaceActionListener- See Also:
-
openImageWithFrame
DOCUMENT ME!- Parameters:
imageLocation- DOCUMENT ME!doMulti- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
parseTreeToXML
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
Creates the tree structure from the parser code.- Parameters:
scriptFile- The name of the script file to use
-
populateModel
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!
-