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

Method putBehind

ij/src/main/java/ij/WindowManager.java:514–531  ·  view source on GitHub ↗

Activates the next image window on the window list.

()

Source from the content-addressed store, hash-verified

512
513 /** Activates the next image window on the window list. */
514 public static void putBehind() {
515 if (IJ.debugMode) IJ.log("putBehind");
516 if (imageList.size()<1 || currentWindow==null)
517 return;
518 int index = imageList.indexOf(currentWindow);
519 ImageWindow win = null;
520 int count = 0;
521 do {
522 index--;
523 if (index<0) index = imageList.size()-1;
524 win = (ImageWindow)imageList.get(index);
525 if (++count==imageList.size()) return;
526 } while (win instanceof HistogramWindow || win instanceof PlotWindow);
527 if (win==null) return;
528 ImagePlus imp = win.getImagePlus();
529 if (imp!=null)
530 IJ.selectWindow(imp.getID());
531 }
532
533 /** Returns the temporary current image for this thread, or null. */
534 public static ImagePlus getTempCurrentImage() {

Callers 1

runMethod · 0.95

Calls 7

logMethod · 0.95
getImagePlusMethod · 0.95
selectWindowMethod · 0.95
getIDMethod · 0.95
sizeMethod · 0.45
indexOfMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected