Package gov.nih.mipav.view.dialogs
Class MTryJistHook
- java.lang.Object
-
- gov.nih.mipav.view.dialogs.MTryJistHook
-
- All Implemented Interfaces:
ActionDiscovery
public class MTryJistHook extends java.lang.Object implements ActionDiscovery
This class is an example class for tying existing plugins into the JIST interface. This class can be inserted into any build of MIPAV which has a compatible build of JIST. JIST will then discover the plugin and execute it appropriately.- Author:
- senseneyj
-
-
Field Summary
Fields Modifier and Type Field Description private mtry.PlugInDialogMTry534dinternalDialog
-
Constructor Summary
Constructors Constructor Description MTryJistHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterTablecreateInputParameters()Returns a table listing the input parameters of this algorithm (which should match up with the scripting parameters used in#setGUIFromParams()).ParameterTablecreateOutputParameters()Returns a table listing the output parameters of this algorithm (usually just labels used to obtain output image names later).ActionMetadatagetActionMetadata()Return meta-information about this discoverable action for categorization and labeling purposes.java.lang.StringgetOutputImageName(java.lang.String imageParamName)Returns the name of an image output by this algorithm, the image returned depends on the parameter label given (which can be used to retrieve the image object from the image registry).booleanisActionComplete()Returns whether the action has successfully completed its execution.voidscriptRun(ParameterTable table)Starts execution of the action.
-
-
-
Method Detail
-
getActionMetadata
public ActionMetadata getActionMetadata()
Description copied from interface:ActionDiscoveryReturn meta-information about this discoverable action for categorization and labeling purposes.- Specified by:
getActionMetadatain interfaceActionDiscovery- Returns:
- Metadata for this action.
-
createInputParameters
public ParameterTable createInputParameters()
Description copied from interface:ActionDiscoveryReturns a table listing the input parameters of this algorithm (which should match up with the scripting parameters used in#setGUIFromParams()).- Specified by:
createInputParametersin interfaceActionDiscovery- Returns:
- A parameter table listing the inputs of this algorithm.
-
createOutputParameters
public ParameterTable createOutputParameters()
Description copied from interface:ActionDiscoveryReturns a table listing the output parameters of this algorithm (usually just labels used to obtain output image names later).- Specified by:
createOutputParametersin interfaceActionDiscovery- Returns:
- A parameter table listing the outputs of this algorithm.
-
scriptRun
public void scriptRun(ParameterTable table)
Description copied from interface:ActionDiscoveryStarts execution of the action. Should be the same as the scriptRun() method used by the MIPAV scripting system.- Specified by:
scriptRunin interfaceActionDiscovery- Parameters:
table- The input parameters (with values set) to be used to run the action.
-
getOutputImageName
public java.lang.String getOutputImageName(java.lang.String imageParamName)
Description copied from interface:ActionDiscoveryReturns the name of an image output by this algorithm, the image returned depends on the parameter label given (which can be used to retrieve the image object from the image registry).- Specified by:
getOutputImageNamein interfaceActionDiscovery- Parameters:
imageParamName- The output image parameter label for which to get the image name.- Returns:
- The image name of the requested output image parameter label.
-
isActionComplete
public boolean isActionComplete()
Description copied from interface:ActionDiscoveryReturns whether the action has successfully completed its execution.- Specified by:
isActionCompletein interfaceActionDiscovery- Returns:
- True, if the action is complete. False, if the action failed or is still running.
-
-