Package ij.plugin.filter
Class PlugInFilterRunner
java.lang.Object
ij.plugin.filter.PlugInFilterRunner
- All Implemented Interfaces:
DialogListener
,Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionPlugInFilterRunner
(Object theFilter, String command, String arg) The constructor runs a PlugInFilter or ExtendedPlugInFilter by calling its setup, run, etc. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The listener to any change in the dialog.int
Return the slice number currently processed by the calling thread.void
run()
The dispatcher for the background threadsvoid
-
Constructor Details
-
PlugInFilterRunner
The constructor runs a PlugInFilter or ExtendedPlugInFilter by calling its setup, run, etc. methods. For details, see the documentation of interfaces PlugInFilter and ExtendedPlugInFilter.- Parameters:
theFilter
- The PlugInFilter to be runcommand
- The command that has caused running the PlugInFilterarg
- The argument specified for this PlugInFilter in IJ_Props.txt or in the plugins.config file of a .jar archive conatining a collection of plugins.arg
may be a string of length zero.
-
-
Method Details
-
getSliceNumber
public int getSliceNumber()Return the slice number currently processed by the calling thread.- Returns:
- The slice number. Returns -1 on error (when not processing).
-
run
public void run()The dispatcher for the background threads -
setDialog
-
dialogItemChanged
The listener to any change in the dialog. It is used for preview. It is invoked every time the user changes something in the dialog (except OK and cancel buttons), provided that all previous listeners (parameter checking) have returned true.- Specified by:
dialogItemChanged
in interfaceDialogListener
- Parameters:
e
- The event that has happened in the dialog. This method may be also called with e=null, e.g. to start preview already when the dialog appears.gd
- A reference to the GenericDialog.- Returns:
- Always true. (The return value determines whether the dialog will enable the OK button)
-