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

Method close

ij/src/main/java/ij/ImagePlus.java:561–571  ·  view source on GitHub ↗

Closes this image and sets the ImageProcessor to null. To avoid the "Save changes?" dialog, first set the public 'changes' variable to false.

()

Source from the content-addressed store, hash-verified

559 /** Closes this image and sets the ImageProcessor to null. To avoid the
560 "Save changes?" dialog, first set the public 'changes' variable to false. */
561 public void close() {
562 ImageWindow win = getWindow();
563 if (win!=null)
564 win.close();
565 else {
566 if (WindowManager.getCurrentImage()==this)
567 WindowManager.setTempCurrentImage(null);
568 deleteRoi(); //save any ROI so it can be restored later
569 Interpreter.removeBatchModeImage(this);
570 }
571 }
572
573 /** Opens a window to display this image and clears the status bar. */
574 public void show() {

Callers 15

revertStackMethod · 0.95
closeAllMethod · 0.95
runMethod · 0.95
processVirtualStackMethod · 0.95
processFolderMethod · 0.95
runMethod · 0.95
runMethod · 0.95
processVirtualStackMethod · 0.95
processFolderMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95

Calls 6

getWindowMethod · 0.95
closeMethod · 0.95
getCurrentImageMethod · 0.95
setTempCurrentImageMethod · 0.95
deleteRoiMethod · 0.95
removeBatchModeImageMethod · 0.95

Tested by

no test coverage detected