ij
Class Executer

java.lang.Object
  extended by ij.Executer
All Implemented Interfaces:
java.lang.Runnable

public class Executer
extends java.lang.Object
implements java.lang.Runnable

Runs menu commands in a separate thread.


Constructor Summary
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.
 
Method Summary
static java.lang.String getCommand()
          Returns the last command executed.
 void run()
           
 void runCommand(java.lang.String cmd, ImagePlus imp)
           
 void runImageCommand(java.lang.String cmd, ImagePlus imp)
          Run commands that process images.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

runCommand

public void runCommand(java.lang.String cmd,
                       ImagePlus imp)

runImageCommand

public void runImageCommand(java.lang.String cmd,
                            ImagePlus imp)
Run commands that process images.


getCommand

public static java.lang.String getCommand()
Returns the last command executed. Returns null if no command has been executed.