()
| 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) { |
no test coverage detected