Package ij.macro
Class MacroRunner
- java.lang.Object
-
- ij.macro.MacroRunner
-
-
Constructor Summary
Constructors Constructor Description MacroRunner()
Create a MacroRunner.MacroRunner(Program pgm, int address, String name)
Create a new object that runs a tokenized macro in a separate thread.MacroRunner(Program pgm, int address, String name, Editor editor)
Create a new object that runs a tokenized macro in debug mode if 'editor' is not null.MacroRunner(Program pgm, int address, String name, String argument)
Create a new object that runs a tokenized macro in a separate thread, passing a string argument.MacroRunner(File file)
Create a new object that interprets a macro file using a separate thread.MacroRunner(String macro)
Create a new object that interprets macro source in a separate thread.MacroRunner(String macro, Editor editor)
Create a new object that interprets macro source in debug mode if 'editor' is not null.MacroRunner(String macro, String argument)
Create a new object that interprets macro source in a separate thread, and also passing a string argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Thread
getThread()
void
run()
void
run(Program pgm, int address, String name)
Runs a tokenized macro on the current thread.void
runShortcut(Program pgm, int address, String name)
Runs tokenized macro on current thread if pgm.queueCommands is true.
-
-
-
Constructor Detail
-
MacroRunner
public MacroRunner()
Create a MacroRunner.
-
MacroRunner
public MacroRunner(String macro)
Create a new object that interprets macro source in a separate thread.
-
MacroRunner
public MacroRunner(String macro, Editor editor)
Create a new object that interprets macro source in debug mode if 'editor' is not null.
-
MacroRunner
public MacroRunner(String macro, String argument)
Create a new object that interprets macro source in a separate thread, and also passing a string argument.
-
MacroRunner
public MacroRunner(File file)
Create a new object that interprets a macro file using a separate thread.
-
MacroRunner
public MacroRunner(Program pgm, int address, String name)
Create a new object that runs a tokenized macro in a separate thread.
-
MacroRunner
public MacroRunner(Program pgm, int address, String name, String argument)
Create a new object that runs a tokenized macro in a separate thread, passing a string argument.
-
-
Method Detail
-
runShortcut
public void runShortcut(Program pgm, int address, String name)
Runs tokenized macro on current thread if pgm.queueCommands is true.
-
run
public void run(Program pgm, int address, String name)
Runs a tokenized macro on the current thread.
-
getThread
public Thread getThread()
-
-