java.lang.Object
ij.Macro
The class contains static methods that perform macro operations.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidabort()Aborts the currently running macro or any plugin using IJ.run().static StringEvaluates 'code' and returns the output, or any error, as a String (e.g., Macro.eval("2+2") returns "4").static Stringstatic Stringstatic StringIf a command started using run(name, options) is running, and the current thread is the same thread, returns the options string, otherwise, returns null.static Stringstatic booleanstatic booleanstatic voidsetOptions(String options) Define a set of Macro options for the current Thread.static voidsetOptions(Thread thread, String options) Define a set of Macro options for a Thread.static String
-
Field Details
-
MACRO_CANCELED
- See Also:
-
-
Constructor Details
-
Macro
public Macro()
-
-
Method Details
-
open
-
saveAs
-
getName
-
getDir
-
abort
public static void abort()Aborts the currently running macro or any plugin using IJ.run(). -
getOptions
If a command started using run(name, options) is running, and the current thread is the same thread, returns the options string, otherwise, returns null.- See Also:
-
setOptions
Define a set of Macro options for the current Thread. -
setOptions
Define a set of Macro options for a Thread. -
getValue
-
trimKey
-
eval
Evaluates 'code' and returns the output, or any error, as a String (e.g., Macro.eval("2+2") returns "4").
-