Package ij
Class Executer
- java.lang.Object
-
- ij.Executer
-
- All Implemented Interfaces:
java.lang.Runnable
public class Executer extends java.lang.Object implements java.lang.RunnableRuns ImageJ menu commands in a separate thread.
-
-
Constructor Summary
Constructors Constructor Description Executer(java.lang.String cmd)Create an Executer to run the specified menu command in this thread using the active image.Executer(java.lang.String cmd, ImagePlus imp)Create an Executer that runs the specified menu command in a separate thread using the specified image, or using the active image if 'imp' is null.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddCommandListener(CommandListener listener)Adds the specified command listener.static java.lang.StringgetCommand()Returns the last command executed.static intgetListenerCount()static booleanloadLut(java.lang.String name)Opens a .lut file from the ImageJ/luts directory and returns 'true' if successful.static voidremoveCommandListener(CommandListener listener)Removes the specified command listener.voidrun()static voidsetAsRepeatCommand(java.lang.String cmd)
-
-
-
Constructor Detail
-
Executer
public Executer(java.lang.String cmd)
Create an Executer to run the specified menu command in this thread using the active image.
-
Executer
public Executer(java.lang.String cmd, ImagePlus imp)Create an Executer that runs the specified menu command in a separate thread using the specified image, or using the active image if 'imp' is null.
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
loadLut
public static boolean loadLut(java.lang.String name)
Opens a .lut file from the ImageJ/luts directory and returns 'true' if successful.
-
getCommand
public static java.lang.String getCommand()
Returns the last command executed. Returns null if no command has been executed.
-
setAsRepeatCommand
public static void setAsRepeatCommand(java.lang.String cmd)
-
addCommandListener
public static void addCommandListener(CommandListener listener)
Adds the specified command listener.
-
removeCommandListener
public static void removeCommandListener(CommandListener listener)
Removes the specified command listener.
-
getListenerCount
public static int getListenerCount()
-
-