Activates the next image window on the window list.
()
| 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() { |
no test coverage detected