MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getWindow

Method getWindow

ij/src/main/java/ij/WindowManager.java:540–548  ·  view source on GitHub ↗

Returns the window (a Frame or a Dialog) with the specified title, or null if a window with that title is not found.

(String title)

Source from the content-addressed store, hash-verified

538 /** Returns the window (a Frame or a Dialog) with the specified
539 title, or null if a window with that title is not found. */
540 public static Window getWindow(String title) {
541 for (int i=0; i<nonImageList.size(); i++) {
542 Object win = nonImageList.get(i);
543 String winTitle = win instanceof Frame?((Frame)win).getTitle():((Dialog)win).getTitle();
544 if (title.equals(winTitle))
545 return (Window)win;
546 }
547 return getImageWindow(title);
548 }
549
550 /** Obsolete; replaced by getWindow(). */
551 public static Frame getFrame(String title) {

Callers 9

selectWindowMethod · 0.95
saveWindowLocationsMethod · 0.95
getFrameMethod · 0.95
isOpenMethod · 0.95
freshStartMethod · 0.95
PlugInFilterRunnerMethod · 0.95
padTitleMethod · 0.95
checkAndExecuteTimersMethod · 0.95
TextRoiMethod · 0.95

Calls 5

getImageWindowMethod · 0.95
getTitleMethod · 0.65
sizeMethod · 0.45
getMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected