(Plot thePlot)
| 2568 | } |
| 2569 | |
| 2570 | double updatePlot(Plot thePlot) { |
| 2571 | if (thePlot == plot) { |
| 2572 | ImagePlus plotImage = WindowManager.getImage(plotID); |
| 2573 | ImageWindow win = plotImage!=null?plotImage.getWindow():null; |
| 2574 | if (win!=null) |
| 2575 | ((PlotWindow)win).drawPlot(plot); |
| 2576 | else { |
| 2577 | PlotWindow plotWindow = plot.show(); |
| 2578 | if (plotWindow!=null) |
| 2579 | plotID = plotWindow.getImagePlus().getID(); |
| 2580 | } |
| 2581 | } else |
| 2582 | thePlot.updateImage(); |
| 2583 | plot = null; //not a plot under construction any more |
| 2584 | interp.getParens(); |
| 2585 | return Double.NaN; |
| 2586 | } |
| 2587 | |
| 2588 | double addPlotText(Plot plot) { |
| 2589 | String str = getFirstString(); |
no test coverage detected