(String arg)
| 14 | boolean plotVertically; |
| 15 | |
| 16 | @AstroImageJ(reason = "Set plot in window's imp", modified = true) |
| 17 | public void run(String arg) { |
| 18 | if (arg.equals("set")) { |
| 19 | doOptions(); |
| 20 | return; |
| 21 | } |
| 22 | imp = IJ.getImage(); |
| 23 | if (firstTime) |
| 24 | plotVertically = Prefs.verticalProfile || IJ.altKeyDown(); |
| 25 | Plot plot = getPlot(); |
| 26 | firstTime = false; |
| 27 | if (plot==null) |
| 28 | return; |
| 29 | plot.setPlotMaker(this); |
| 30 | plot.show().getImagePlus().setPlot(plot); |
| 31 | Roi roi = imp.getRoi(); |
| 32 | if (roi!=null && roi.getType()==Roi.RECTANGLE) |
| 33 | plot.getImagePlus().setProperty ("Label", plotVertically ? "vertical" : "horizontal"); |
| 34 | } |
| 35 | |
| 36 | public Plot getPlot() { |
| 37 | Roi roi = imp.getRoi(); |
nothing calls this directly
no test coverage detected