All Packages Class Hierarchy This Package Previous Next Index
Class ij.Info
java.lang.Object
|
+----ij.Info
- public class Info
- extends Object
This class contains static methods for displaying messages in
the Image/J window and in dialog boxes.
-
CANCELED
-
-
debugMode
-
-
Info()
-
-
d2s(double)
- Converts a number to a formatted string.
-
error(String)
- Displays a message in a dialog box titled "Error".
-
freeMemory()
-
-
getImageJ()
- Returns a reference to the "Image/J" frame.
-
getNumber(String, double)
- Allows the user to enter a number in a dialog box.
-
getString(String, String)
- Allows the user to enter a string in a dialog box.
-
init(ImageJ)
-
-
noImage()
- Displays a "no images are open" dialog box.
-
outOfMemory(String)
- Displays an "out of memory" message in the Image/J window.
-
showMessage(String)
- Displays a message in a dialog box titled "Message".
-
showMessage(String, String)
- Displays a message in a dialog box with the specified title.
-
showMessageWithCancel(String, String)
- Displays a message in a dialog box with the specified title.
-
showProgress(double)
- Updates the progress bar.
-
showStatus(String)
- Displays a message in the Image/J status bar.
-
showTime(ImagePlus, long, String)
-
-
wait(int)
- Delays 'msecs' milliseconds.
-
write(String)
- Displays a message in the Image/J window.
debugMode
public static boolean debugMode
CANCELED
public static final int CANCELED
Info
public Info()
init
public static void init(ImageJ imagej)
getImageJ
public static ImageJ getImageJ()
- Returns a reference to the "Image/J" frame.
showStatus
public static void showStatus(String s)
- Displays a message in the Image/J status bar.
write
public static void write(String s)
- Displays a message in the Image/J window.
noImage
public static void noImage()
- Displays a "no images are open" dialog box.
outOfMemory
public static void outOfMemory(String name)
- Displays an "out of memory" message in the Image/J window.
showProgress
public static void showProgress(double progress)
- Updates the progress bar.
showMessage
public static void showMessage(String title,
String msg)
- Displays a message in a dialog box with the specified title.
showMessage
public static void showMessage(String msg)
- Displays a message in a dialog box titled "Message".
error
public static void error(String msg)
- Displays a message in a dialog box titled "Error".
showMessageWithCancel
public static boolean showMessageWithCancel(String title,
String msg)
- Displays a message in a dialog box with the specified title.
Returns false if the user pressed "Cancel".
getNumber
public static double getNumber(String prompt,
double defaultNumber)
- Allows the user to enter a number in a dialog box. Returns the
value Info.CANCELED (-2,147,483,648) if the user cancels the dialog box
getString
public static String getString(String prompt,
String defaultString)
- Allows the user to enter a string in a dialog box. Returns
"" if the user cancels the dialog box.
wait
public static void wait(int msecs)
- Delays 'msecs' milliseconds.
freeMemory
public static String freeMemory()
showTime
public static void showTime(ImagePlus imp,
long start,
String str)
d2s
public static String d2s(double n)
- Converts a number to a formatted string.
All Packages Class Hierarchy This Package Previous Next Index