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

Method hide

ij/src/main/java/ij/ImagePlus.java:544–557  ·  view source on GitHub ↗

Closes the window, if any, that is displaying this image.

()

Source from the content-addressed store, hash-verified

542
543 /** Closes the window, if any, that is displaying this image. */
544 public void hide() {
545 if (win==null) {
546 img = null;
547 Interpreter.removeBatchModeImage(this);
548 return;
549 }
550 boolean unlocked = lockSilently();
551 Overlay overlay2 = getOverlay();
552 changes = false;
553 win.close();
554 win = null;
555 setOverlay(overlay2);
556 if (unlocked) unlock();
557 }
558
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. */

Callers 3

setBatchModeMethod · 0.95
runMethod · 0.95
createHypervolMethod · 0.95

Calls 6

removeBatchModeImageMethod · 0.95
lockSilentlyMethod · 0.95
getOverlayMethod · 0.95
setOverlayMethod · 0.95
unlockMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected