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

Method disableLivePlot

ij/src/main/java/ij/gui/PlotWindow.java:981–995  ·  view source on GitHub ↗

Disables live plotting (when currently active)

()

Source from the content-addressed store, hash-verified

979
980 /** Disables live plotting (when currently active) */
981 private void disableLivePlot() {
982 if (IJ.debugMode) IJ.log("PlotWindow.disableLivePlot: "+srcImp);
983 if (srcImp==null)
984 return;
985 if (bgThread!=null)
986 bgThread.interrupt();
987 bgThread = null;
988 ImagePlus.removeImageListener(this);
989 Roi.removeRoiListener(this);
990 if (live != null) {
991 Font font = live.getFont();
992 live.setFont(new Font(font.getName(), Font.PLAIN, font.getSize()));
993 live.setForeground(Color.black);
994 }
995 }
996
997
998 /** For live plots, update the plot if the ROI of the source image changes */

Callers 3

disposeMethod · 0.95
enableLivePlotMethod · 0.95
imageClosedMethod · 0.95

Calls 7

logMethod · 0.95
removeImageListenerMethod · 0.95
removeRoiListenerMethod · 0.95
getFontMethod · 0.65
setFontMethod · 0.65
getNameMethod · 0.65
getSizeMethod · 0.65

Tested by

no test coverage detected