|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.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(javax.swing.JFrame win)
Adds the specified window to the Window menu. |
static boolean |
closeAllWindows()
Closes all windows. |
static ImagePlus |
getCurrentImage()
Returns a reference to the active image or null if there isn't one. |
static ImageWindow |
getCurrentWindow()
Returns the active ImageWindow. |
static javax.swing.JFrame |
getFrame(java.lang.String title)
Returns the frame with the specified title or null if a frame with that title is not found. |
static javax.swing.JFrame |
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 javax.swing.JFrame[] |
getNonImageWindows()
Returns an array containing a list of the non-image windows. |
static int |
getNthImageID(int n)
Returns the ID of the Nth open image. |
static ImagePlus |
getTempCurrentImage()
Returns the temporary current image for this thread, or null. |
static java.lang.String |
getUniqueName(java.lang.String name)
Returns a unique name by adding, before the extension, -1, -2, etc. as needed. |
static int |
getWindowCount()
Returns the number of open image windows. |
static java.lang.String |
makeUniqueName(java.lang.String name)
If 'name' is not unique, adds -1, -2, etc. as needed to make it unique. |
static void |
putBehind()
Activates the next image window on the window list. |
static void |
removeWindow(javax.swing.JFrame win)
Removes the specified window from the Window menu. |
static void |
repaintImageWindows()
Repaints all open image windows. |
static void |
setCurrentWindow(ImageWindow win)
Makes the image contained in the specified window the active image. |
static void |
setTempCurrentImage(ImagePlus img)
Makes the specified image temporarily the active image for this thread. |
static void |
setTempCurrentImage(java.lang.Thread thread,
ImagePlus img)
Sets a temporary image for the specified thread. |
static void |
setWindow(javax.swing.JFrame win)
The specified frame becomes the front window, the one returnd by getFrontWindow(). |
static void |
toFront(javax.swing.JFrame frame)
|
Methods inherited from class java.lang.Object |
---|
equals, 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 void setTempCurrentImage(ImagePlus img)
public static void setTempCurrentImage(java.lang.Thread thread, ImagePlus img)
public static int getWindowCount()
public static int getImageCount()
public static javax.swing.JFrame getFrontWindow()
public static int[] getIDList()
public static javax.swing.JFrame[] getNonImageWindows()
public static ImagePlus getImage(int imageID)
public static int getNthImageID(int n)
public static ImagePlus getImage(java.lang.String title)
public static void addWindow(javax.swing.JFrame win)
public static java.lang.String getUniqueName(java.lang.String name)
public static java.lang.String makeUniqueName(java.lang.String name)
public static void removeWindow(javax.swing.JFrame win)
public static void setWindow(javax.swing.JFrame win)
public static boolean closeAllWindows()
public static void putBehind()
public static ImagePlus getTempCurrentImage()
public static javax.swing.JFrame getFrame(java.lang.String title)
public static void repaintImageWindows()
public static void toFront(javax.swing.JFrame frame)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |