Draws a new plot in this window.
(Plot plot)
| 916 | |
| 917 | /** Draws a new plot in this window. */ |
| 918 | public void drawPlot(Plot plot) { |
| 919 | this.plot = plot; |
| 920 | if (imp!=null) { |
| 921 | if (ic instanceof PlotCanvas) |
| 922 | ((PlotCanvas)ic).setPlot(plot); |
| 923 | imp.setProcessor(null, plot.getProcessor()); |
| 924 | plot.setImagePlus(imp); //also adjusts the calibration of imp |
| 925 | } |
| 926 | } |
| 927 | |
| 928 | /** Called once when ImageJ quits. */ |
| 929 | public static void savePreferences(Properties prefs) { |
no test coverage detected