Releases the ImageProcessor and ImagePlus associated with the plot. May help garbage collection because some garbage collectors are said to be inefficient with circular references.
()
| 1924 | * May help garbage collection because some garbage collectors |
| 1925 | * are said to be inefficient with circular references. */ |
| 1926 | @AstroImageJ(reason = "Support vectorized plot drawing", modified = true) |
| 1927 | public void dispose() { |
| 1928 | if (imp != null) { |
| 1929 | imp.setProperty(PROPERTY_KEY, null); |
| 1930 | imp.setProperty(VectorPlotDrawing.PROPERTY_KEY, null); |
| 1931 | } |
| 1932 | imp = null; |
| 1933 | ip = null; |
| 1934 | } |
| 1935 | |
| 1936 | /** Converts pixels to calibrated coordinates. In contrast to the image calibration, also |
| 1937 | * works with log axes and inverted x axes */ |