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

Method setFrozen

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

Freezes or unfreezes the plot. In the frozen state, the plot cannot be resized or updated, and the Plot class does no modifications to the ImageProcessor. Changes are recorded nevertheless and become effective with setFrozen(false) .

(boolean frozen)

Source from the content-addressed store, hash-verified

1820 * and the Plot class does no modifications to the ImageProcessor.
1821 * Changes are recorded nevertheless and become effective with <code>setFrozen(false)</code>. */
1822 public void setFrozen(boolean frozen) {
1823 pp.isFrozen = frozen;
1824 if (!pp.isFrozen) { // unfreeze operations ...
1825 if (imp != null && ip != null) {
1826 ImageCanvas ic = imp.getCanvas();
1827 if (ic instanceof PlotCanvas) {
1828 ((PlotCanvas)ic).resetMagnification();
1829 imp.setTitle(imp.getTitle()); //update magnification in title
1830 }
1831 Undo.setup(Undo.TRANSFORM, imp);
1832 }
1833 updateImage();
1834 ImageWindow win = imp == null ? null : imp.getWindow();
1835 if (win != null) win.updateImage(imp); //show any changes made during the frozen state
1836 }
1837 }
1838
1839 public boolean isFrozen() {
1840 return pp.isFrozen;

Callers 5

doPlotMethod · 0.95
runMethod · 0.80
itemStateChangedMethod · 0.80
freezeMethod · 0.80
drawUpdatedPlotMethod · 0.80

Calls 8

setupMethod · 0.95
updateImageMethod · 0.95
updateImageMethod · 0.95
resetMagnificationMethod · 0.80
getTitleMethod · 0.65
getCanvasMethod · 0.45
setTitleMethod · 0.45
getWindowMethod · 0.45

Tested by

no test coverage detected