|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.IJ
public class IJ
This class consists of static utility methods.
Field Summary | |
---|---|
static int |
CANCELED
|
static boolean |
debugMode
|
Constructor Summary | |
---|---|
IJ()
|
Method Summary | |
---|---|
static boolean |
altKeyDown()
Returns true if the alt key is down. |
static void |
beep()
Emits an audio beep. |
static java.lang.String |
d2s(double n)
Converts a number to a formatted string using 2 digits to the right of the decimal point. |
static java.lang.String |
d2s(double n,
int precision)
Converts a number to a rounded formatted string. |
static void |
doCommand(java.lang.String command)
Starts executing a menu command in a separete thread and returns immediately. |
static void |
error(java.lang.String msg)
Displays a message in a dialog box titled "Error". |
static java.lang.String |
freeMemory()
|
static java.applet.Applet |
getApplet()
Returns the Applet that created this ImageJ or null if running as an application. |
static ImageJ |
getInstance()
Returns a reference to the "ImageJ" frame. |
static double |
getNumber(java.lang.String prompt,
double defaultNumber)
Allows the user to enter a number in a dialog box. |
static java.lang.String |
getString(java.lang.String prompt,
java.lang.String defaultString)
Allows the user to enter a string in a dialog box. |
static TextPanel |
getTextPanel()
Returns a reference to the ImageJ text panel. |
static boolean |
isMacintosh()
Returns true if this machine is a Macintosh. |
static void |
noImage()
Displays a "no images are open" dialog box. |
static void |
outOfMemory(java.lang.String name)
Displays an "out of memory" message in the ImageJ window. |
static void |
register(java.lang.Class c)
Adds the specified class to a Vector to keep it from being garbage collected, which would cause the classes static fields to be reset. |
static void |
run(java.lang.String command)
Runs a menu command in the current thread. |
static java.lang.Object |
runPlugIn(java.lang.String className,
java.lang.String arg)
Runs the specified plug-in and returns a reference to it. |
static void |
setColumnHeadings(java.lang.String headings)
Clears the worksheet and sets the column headings to those in the tab-delimited 'headings' String. |
static int |
setupDialog(ImagePlus imp,
int flags)
|
static void |
showMessage(java.lang.String msg)
Displays a message in a dialog box titled "Message". |
static void |
showMessage(java.lang.String title,
java.lang.String msg)
Displays a message in a dialog box with the specified title. |
static boolean |
showMessageWithCancel(java.lang.String title,
java.lang.String msg)
Displays a message in a dialog box with the specified title. |
static void |
showProgress(double progress)
Updates the progress bar. |
static void |
showStatus(java.lang.String s)
Displays a message in the ImageJ status bar. |
static void |
showTime(ImagePlus imp,
long start,
java.lang.String str)
|
static boolean |
spaceBarDown()
Returns true if the space bar is down. |
static boolean |
versionLessThan(java.lang.String version)
Displays an error message and returns false if the ImageJ version is less than the one specified. |
static void |
wait(int msecs)
Delays 'msecs' milliseconds. |
static void |
write(java.lang.String s)
Displays a line of text in the ImageJ window. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean debugMode
public static final int CANCELED
Constructor Detail |
---|
public IJ()
Method Detail |
---|
public static ImageJ getInstance()
public static java.lang.Object runPlugIn(java.lang.String className, java.lang.String arg)
public static void doCommand(java.lang.String command)
public static void run(java.lang.String command)
public static java.applet.Applet getApplet()
public static void showStatus(java.lang.String s)
public static void write(java.lang.String s)
public static void setColumnHeadings(java.lang.String headings)
public static TextPanel getTextPanel()
public static void noImage()
public static void outOfMemory(java.lang.String name)
public static void showProgress(double progress)
public static void showMessage(java.lang.String title, java.lang.String msg)
public static void showMessage(java.lang.String msg)
public static void error(java.lang.String msg)
public static boolean showMessageWithCancel(java.lang.String title, java.lang.String msg)
public static double getNumber(java.lang.String prompt, double defaultNumber)
public static java.lang.String getString(java.lang.String prompt, java.lang.String defaultString)
public static void wait(int msecs)
public static void beep()
public static java.lang.String freeMemory()
public static void showTime(ImagePlus imp, long start, java.lang.String str)
public static java.lang.String d2s(double n)
public static java.lang.String d2s(double n, int precision)
public static void register(java.lang.Class c)
public static boolean spaceBarDown()
public static boolean altKeyDown()
public static boolean isMacintosh()
public static boolean versionLessThan(java.lang.String version)
public static int setupDialog(ImagePlus imp, int flags)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |