MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / dispose

Method dispose

ij/src/main/java/ij/gui/Plot.java:1926–1934  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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 */

Callers 15

makeHighResolutionMethod · 0.95
runMethod · 0.45
closeAllWindowsMethod · 0.45
closeAndRefocusMethod · 0.45
saveMethod · 0.45
closeDialogMethod · 0.45
closeDialogMethod · 0.45
setTool2Method · 0.45
repaintToolMethod · 0.45
drawToolMethod · 0.45
closeMethod · 0.45
windowClosingMethod · 0.45

Calls 1

setPropertyMethod · 0.45

Tested by 1

windowClosingMethod · 0.36