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

Method toggleOverlay

ij/src/main/java/ij/ImagePlus.java:3541–3557  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3539 }
3540
3541 public boolean toggleOverlay() {
3542 if (getOverlay()!=null)
3543 setHideOverlay(!hideOverlay);
3544 else {
3545 RoiManager rm = RoiManager.getInstance();
3546 if (rm!=null) {
3547 setHideOverlay(!hideOverlay);
3548 if (hideOverlay)
3549 rm.runCommand("show none");
3550 else if (rm.getCount()>1) {
3551 if (!IJ.isMacro()) rm.toFront();
3552 rm.runCommand("show all with labels");
3553 }
3554 }
3555 }
3556 return hideOverlay;
3557 }
3558
3559 /** Enable/disable use of antialiasing by the flatten() method. */
3560 public void setAntialiasRendering(boolean antialiasRendering) {

Callers 1

toggleMethod · 0.95

Calls 7

getOverlayMethod · 0.95
setHideOverlayMethod · 0.95
getInstanceMethod · 0.95
runCommandMethod · 0.95
getCountMethod · 0.95
isMacroMethod · 0.95
toFrontMethod · 0.45

Tested by

no test coverage detected