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

Method enableLivePlot

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

Enables or disables live plotting. Does nothing if the plot has no PlotMaker (then there is no 'live' button).

(boolean b)

Source from the content-addressed store, hash-verified

940 /** Enables or disables live plotting.
941 * Does nothing if the plot has no PlotMaker (then there is no 'live' button). */
942 public void enableLivePlot(boolean b) {
943 if (plot==null || plot.getPlotMaker()==null || live == null)
944 return;
945 if (b && bgThread == null)
946 enableLivePlot();
947 else if (!b && bgThread != null)
948 disableLivePlot();
949 }
950
951 private void toggleLivePlot() {
952 boolean liveMode = bgThread != null;

Callers 3

enableLivePlotMethod · 0.95
drawMethod · 0.95
toggleLivePlotMethod · 0.95

Calls 12

disableLivePlotMethod · 0.95
logMethod · 0.95
addImageListenerMethod · 0.95
addRoiListenerMethod · 0.95
getPlotMakerMethod · 0.80
getSourceImageMethod · 0.65
getFontMethod · 0.65
setFontMethod · 0.65
getNameMethod · 0.65
getSizeMethod · 0.65
maxMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected