Closes this image and sets the ImageProcessor to null. To avoid the "Save changes?" dialog, first set the public 'changes' variable to false.
()
| 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() { |
no test coverage detected