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

Method getFrame

ij/src/main/java/ij/WindowManager.java:551–565  ·  view source on GitHub ↗

Obsolete; replaced by getWindow().

(String title)

Source from the content-addressed store, hash-verified

549
550 /** Obsolete; replaced by getWindow(). */
551 public static Frame getFrame(String title) {
552 for (int i=0; i<nonImageList.size(); i++) {
553 Object win = nonImageList.get(i);
554 String winTitle = win instanceof Frame?((Frame)win).getTitle():null;
555 if (title.equals(winTitle))
556 return (Frame)win;
557 }
558 Frame frame = getImageWindow(title);
559 if (frame==null) {
560 Window win = getWindow(title);
561 if (win!=null)
562 frame = new Frame("Proxy");
563 }
564 return frame;
565 }
566
567 private static Frame getImageWindow(String title) {
568 int[] wList = getIDList();

Callers 15

handleLogCommandMethod · 0.95
renameResultsMethod · 0.95
errorMethod · 0.95
updateDebugWindowMethod · 0.95
getResultsTableMethod · 0.95
printToWindowMethod · 0.95
showTextMethod · 0.95
setTableLocAndSizeMethod · 0.95
setSelectionMethod · 0.95
getSelectionStartMethod · 0.95
getSelectionEndMethod · 0.95
toFrontMethod · 0.95

Calls 6

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

Tested by

no test coverage detected