public class PlugInFilterRunner extends java.lang.Object implements java.lang.Runnable, DialogListener
Constructor and Description |
---|
PlugInFilterRunner(java.lang.Object theFilter,
java.lang.String command,
java.lang.String arg)
The constructor runs a PlugInFilter or ExtendedPlugInFilter by calling its
setup, run, etc.
|
Modifier and Type | Method and Description |
---|---|
boolean |
dialogItemChanged(GenericDialog gd,
java.awt.AWTEvent e)
The listener to any change in the dialog.
|
int |
getSliceNumber()
Return the slice number currently processed by the calling thread.
|
void |
run()
The dispatcher for the background threads
|
void |
setDialog(GenericDialog gd) |
public PlugInFilterRunner(java.lang.Object theFilter, java.lang.String command, java.lang.String arg)
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.public int getSliceNumber()
public void run()
run
in interface java.lang.Runnable
public void setDialog(GenericDialog gd)
public boolean dialogItemChanged(GenericDialog gd, java.awt.AWTEvent e)
dialogItemChanged
in interface DialogListener
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.