|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.WindowManager
public class WindowManager
This class consists of static methods used to manage ImageJ's windows.
Field Summary | |
---|---|
static boolean |
checkForDuplicateName
|
Method Summary | |
---|---|
static void |
addWindow(java.awt.Frame win)
Adds the specified window to the Window menu. |
static boolean |
closeAllWindows()
Closes all windows. |
static ImagePlus |
getCurrentImage()
Returns the active ImagePlus. |
static ImageWindow |
getCurrentWindow()
Returns the active ImageWindow. |
static java.awt.Frame |
getFrame(java.lang.String title)
Returns the frame with the specified title or null if a frame with that title is not found. |
static java.awt.Frame |
getFrontWindow()
Returns the front most window or null. |
static int[] |
getIDList()
Returns a list of the IDs of open images. |
static ImagePlus |
getImage(int imageID)
For IDs less than zero, returns the ImagePlus with the specified ID. |
static ImagePlus |
getImage(java.lang.String title)
Returns the first image that has the specified title or null if it is not found. |
static int |
getImageCount()
Returns the number of open images. |
static ImagePlus |
getTempCurrentImage()
Returns tempCurrentImage , which may be null. |
static java.lang.String |
getUniqueName(java.lang.String name)
Returns a unique name by adding, before the extension, -1, -2, etc. |
static int |
getWindowCount()
Returns the number of open image windows. |
static void |
putBehind()
Activates the next window on the window list. |
static void |
removeWindow(java.awt.Frame win)
Removes the specified window from the Window menu. |
static void |
repaintImageWindows()
Repaints all open image windows. |
static void |
setCurrentWindow(ImageWindow win)
Makes the specified image active. |
static void |
setTempCurrentImage(ImagePlus imp)
Makes the specified image temporarily the active image. |
static void |
setWindow(java.awt.Frame win)
The specified frame becomes the front window, the one returnd by getFrontWindow(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean checkForDuplicateName
Method Detail |
---|
public static void setCurrentWindow(ImageWindow win)
public static ImageWindow getCurrentWindow()
public static ImagePlus getCurrentImage()
public static int getWindowCount()
public static int getImageCount()
public static java.awt.Frame getFrontWindow()
public static int[] getIDList()
public static ImagePlus getImage(int imageID)
public static ImagePlus getImage(java.lang.String title)
public static void addWindow(java.awt.Frame win)
public static java.lang.String getUniqueName(java.lang.String name)
public static void removeWindow(java.awt.Frame win)
public static void setWindow(java.awt.Frame win)
public static boolean closeAllWindows()
public static void putBehind()
public static void setTempCurrentImage(ImagePlus imp)
public static ImagePlus getTempCurrentImage()
tempCurrentImage
, which may be null.
public static java.awt.Frame getFrame(java.lang.String title)
public static void repaintImageWindows()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |