Closes the window, if any, that is displaying this image.
()
| 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. */ |
no test coverage detected