Disables live plotting (when currently active)
()
| 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 */ |
no test coverage detected