ij
Class WindowManager

java.lang.Object
  extended by ij.WindowManager

public class WindowManager
extends java.lang.Object

This class consists of static methods used to manage ImageJ's windows.


Constructor Summary
WindowManager()
           
 
Method Summary
static void addWindow(ImageWindow win)
           
static boolean closeAllWindows()
          Closes all image windows.
static ImagePlus getCurrentImage()
           
static ImageWindow getCurrentWindow()
           
static int[] getIDList()
          Returns a list of the IDs of open images.
static ImagePlus getImage(int imageID)
          Returns the ImagePlus with the specified ID.
static int getWindowCount()
           
static void putBehind()
          Activates the next window on the window list.
static void removeWindow(ImageWindow win)
          Closes the current window and removes it from the window list.
static void setCurrentWindow(ImageWindow win)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowManager

public WindowManager()
Method Detail

setCurrentWindow

public static void setCurrentWindow(ImageWindow win)

getCurrentWindow

public static ImageWindow getCurrentWindow()

getCurrentImage

public static ImagePlus getCurrentImage()

getWindowCount

public static int getWindowCount()

getIDList

public static int[] getIDList()
Returns a list of the IDs of open images. Returns null if no windows are open.


getImage

public static ImagePlus getImage(int imageID)
Returns the ImagePlus with the specified ID. Returns null if no open window has a matching ID.


addWindow

public static void addWindow(ImageWindow win)

removeWindow

public static void removeWindow(ImageWindow win)
Closes the current window and removes it from the window list.


closeAllWindows

public static boolean closeAllWindows()
Closes all image windows. Stops and returns false if any "save changes" dialog is canceled.


putBehind

public static void putBehind()
Activates the next window on the window list.