|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectij.Macro
public class Macro
The class contains static methods that perform macro operations.
| Field Summary | |
|---|---|
static String |
MACRO_CANCELED
|
| Constructor Summary | |
|---|---|
Macro()
|
|
| Method Summary | |
|---|---|
static void |
abort()
Aborts the currently running macro or any plugin using IJ.run(). |
static String |
getDir(String path)
|
static String |
getName(String path)
|
static String |
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. |
static String |
getValue(String options,
String key,
String defaultValue)
|
static boolean |
open(String path)
|
static boolean |
saveAs(String path)
|
static void |
setOptions(String options)
Define a set of Macro options for the current Thread. |
static void |
setOptions(Thread thread,
String options)
Define a set of Macro options for a Thread. |
static String |
trimKey(String key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MACRO_CANCELED
| Constructor Detail |
|---|
public Macro()
| Method Detail |
|---|
public static boolean open(String path)
public static boolean saveAs(String path)
public static String getName(String path)
public static String getDir(String path)
public static void abort()
public static String getOptions()
GenericDialog,
OpenDialogpublic static void setOptions(String options)
public static void setOptions(Thread thread,
String options)
public static String getValue(String options,
String key,
String defaultValue)
public static String trimKey(String key)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||