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

Method updateImage

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

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.

()

Source from the content-addressed store, hash-verified

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

Callers 15

doPlotMethod · 0.95
setSizeMethod · 0.95
addPointsMethod · 0.95
setLegendMethod · 0.95
setPlotObjectStyleMethod · 0.95
setLimitsToDefaultsMethod · 0.95
setLimitsToFitMethod · 0.95
setPreviousMinMaxMethod · 0.95
getImagePlusMethod · 0.95
showMethod · 0.95
setFrozenMethod · 0.95
updateMethod · 0.95

Calls 7

getBlankProcessorMethod · 0.95
drawContentsMethod · 0.95
adjustCalibrationMethod · 0.95
getCalibrationMethod · 0.80
updateAndDrawMethod · 0.45
getProcessorMethod · 0.45
setProcessorMethod · 0.45

Tested by

no test coverage detected