edu.jhu.ece.iacl.jist.pipeline
Class ProcessingGroupDialog

java.lang.Object
  extended by JDialogScriptableBase
      extended by edu.jhu.ece.iacl.jist.pipeline.ProcessingDialog
          extended by edu.jhu.ece.iacl.jist.pipeline.ProcessingGroupDialog
All Implemented Interfaces:
ParamViewObserver, java.awt.event.ComponentListener, java.util.EventListener

public class ProcessingGroupDialog
extends ProcessingDialog

 
 Processing Dialog is a generic class that replaces all MIPAV plug-in dialogs
 The dialogs are auto-generated based on the input and output parameters.
 
 This class should not be extended. Any changes to this class will appear
 globally across all plug-ins.
 
 

Author:
Blake Lucas

Field Summary
protected  PipeAlgorithmGroup pipeAlgorithm
          The pipe algorithm.
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.ProcessingDialog
algorithm, buttonPanel, inputView, outputView, paramInfoRegex, paramListDelimiter, parentFrame, serialVersionUID
 
Constructor Summary
ProcessingGroupDialog()
          Empty constructor needed for dynamic instantiation.
ProcessingGroupDialog(PipeAlgorithmGroup pipeAlgorithm)
          Constructor creates input and output parameters from algorithm and uses the algorithm name as title.
 
Method Summary
 void clickClose()
          Handle event when user clicks "Close".
 boolean clickOk()
          Handle event when user clicks "OK".
 boolean clickOpen(java.io.File file)
          Handle event when user clicks "Open".
 void clickSaveAll(java.io.File saveDir)
          Handle event when user clicks "Save Parameters and Resources".
 void clickSaveDefinition(java.io.File saveFile)
          Handle event when user clicks "Save As Module Definition".
 void clickSaveInput(java.io.File saveFile)
          Handle event when user clicks "Save As Algorithm Input".
 void componentHidden(java.awt.event.ComponentEvent arg0)
           
 void componentMoved(java.awt.event.ComponentEvent arg0)
           
 void componentResized(java.awt.event.ComponentEvent event)
          Shameless hack to circumvent bug in linux implementation that prevents window from being resized.
 void componentShown(java.awt.event.ComponentEvent arg0)
           
protected  void createInputDialog()
          Create input dialog frame from input parameters.
 javax.swing.JMenuBar createInputMenuBar()
          Create menubar for input pane.
 void dispose()
          Dispose of dialog.
protected  void doPostAlgorithmActions()
          Store result images in script runner.
 ParamInputView getInputView()
          Get input view.
 ParamOutputView getOutputView()
          Get output view.
 ViewJFrameBase getParentFrame()
          Get parent frame for Mipav.
 void init(java.io.File pipeFile)
          Initialize parameters and algorithm from file.
 void init(PipeAlgorithm pipe)
          Initialize parameter and algorithm from existing algorithm.
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.ProcessingDialog
actionPerformed, algorithmPerformed, buildInputButtons, buildOutputButtons, callAlgorithm, load, loadDefaults, saveAll, saveDefaults, saveInput, saveInputBeforeRun, selectSaveDirectory, setGUIFromParams, setOutputDirectory, setParentFrame, start, storeParamsFromGUI, update, windowClosing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pipeAlgorithm

protected PipeAlgorithmGroup pipeAlgorithm
The pipe algorithm.

Constructor Detail

ProcessingGroupDialog

public ProcessingGroupDialog()
Empty constructor needed for dynamic instantiation.


ProcessingGroupDialog

public ProcessingGroupDialog(PipeAlgorithmGroup pipeAlgorithm)
Constructor creates input and output parameters from algorithm and uses the algorithm name as title.

Parameters:
pipeAlgorithm - the algorithm
Method Detail

clickClose

public void clickClose()
Handle event when user clicks "Close".

Overrides:
clickClose in class ProcessingDialog

clickOk

public boolean clickOk()
Handle event when user clicks "OK".

Overrides:
clickOk in class ProcessingDialog
Returns:
true, if click ok

clickOpen

public boolean clickOpen(java.io.File file)
Handle event when user clicks "Open".

Overrides:
clickOpen in class ProcessingDialog
Parameters:
file - the file
Returns:
true, if click open

clickSaveAll

public void clickSaveAll(java.io.File saveDir)
Handle event when user clicks "Save Parameters and Resources".

Overrides:
clickSaveAll in class ProcessingDialog
Parameters:
saveDir - the save dir

clickSaveDefinition

public void clickSaveDefinition(java.io.File saveFile)
Handle event when user clicks "Save As Module Definition".

Overrides:
clickSaveDefinition in class ProcessingDialog
Parameters:
saveFile - the save file

clickSaveInput

public void clickSaveInput(java.io.File saveFile)
Handle event when user clicks "Save As Algorithm Input".

Overrides:
clickSaveInput in class ProcessingDialog
Parameters:
saveFile - the save file

componentHidden

public void componentHidden(java.awt.event.ComponentEvent arg0)
Specified by:
componentHidden in interface java.awt.event.ComponentListener
Overrides:
componentHidden in class ProcessingDialog

componentMoved

public void componentMoved(java.awt.event.ComponentEvent arg0)
Specified by:
componentMoved in interface java.awt.event.ComponentListener
Overrides:
componentMoved in class ProcessingDialog

componentResized

public void componentResized(java.awt.event.ComponentEvent event)
Shameless hack to circumvent bug in linux implementation that prevents window from being resized.

Specified by:
componentResized in interface java.awt.event.ComponentListener
Overrides:
componentResized in class ProcessingDialog
Parameters:
event - the event

componentShown

public void componentShown(java.awt.event.ComponentEvent arg0)
Specified by:
componentShown in interface java.awt.event.ComponentListener
Overrides:
componentShown in class ProcessingDialog

createInputDialog

protected void createInputDialog()
Create input dialog frame from input parameters.

Overrides:
createInputDialog in class ProcessingDialog

createInputMenuBar

public javax.swing.JMenuBar createInputMenuBar()
Create menubar for input pane.

Overrides:
createInputMenuBar in class ProcessingDialog
Returns:
menu bar

dispose

public void dispose()
Dispose of dialog.

Overrides:
dispose in class ProcessingDialog

doPostAlgorithmActions

protected void doPostAlgorithmActions()
Store result images in script runner.

Overrides:
doPostAlgorithmActions in class ProcessingDialog

getInputView

public ParamInputView getInputView()
Get input view.

Overrides:
getInputView in class ProcessingDialog
Returns:
input view

getOutputView

public ParamOutputView getOutputView()
Get output view.

Overrides:
getOutputView in class ProcessingDialog
Returns:
output view

getParentFrame

public ViewJFrameBase getParentFrame()
Get parent frame for Mipav.

Overrides:
getParentFrame in class ProcessingDialog
Returns:
parent frame

init

public void init(java.io.File pipeFile)
Initialize parameters and algorithm from file.

Overrides:
init in class ProcessingDialog
Parameters:
pipeFile - pipe file

init

public void init(PipeAlgorithm pipe)
Initialize parameter and algorithm from existing algorithm.

Overrides:
init in class ProcessingDialog
Parameters:
pipe - algorithm