Draws the plot again, ignored if the plot has not been drawn before or the plot is frozen. If the ImagePlus exist, updates it and its calibration.
()
| 1848 | /** Draws the plot again, ignored if the plot has not been drawn before or the plot is frozen. |
| 1849 | * If the ImagePlus exist, updates it and its calibration. */ |
| 1850 | public void updateImage() { |
| 1851 | if (!plotDrawn || pp.isFrozen) return; |
| 1852 | getBlankProcessor(); |
| 1853 | drawContents(ip); |
| 1854 | if (imp == null || stack != null) return; |
| 1855 | adjustCalibration(imp.getCalibration()); |
| 1856 | imp.updateAndDraw(); |
| 1857 | if (ip != imp.getProcessor()) |
| 1858 | imp.setProcessor(ip); |
| 1859 | } |
| 1860 | |
| 1861 | /** Returns the rectangle where the data are plotted. |
| 1862 | * This rectangle includes the black outline frame at the top and left, but not at the bottom |
no test coverage detected