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

Method run

ij/src/main/java/ij/plugin/Profiler.java:16–34  ·  view source on GitHub ↗
(String arg)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 13

doOptionsMethod · 0.95
getImageMethod · 0.95
altKeyDownMethod · 0.95
getPlotMethod · 0.95
setPlotMakerMethod · 0.95
showMethod · 0.95
getTypeMethod · 0.95
getImagePlusMethod · 0.95
equalsMethod · 0.45
setPlotMethod · 0.45
getImagePlusMethod · 0.45
getRoiMethod · 0.45

Tested by

no test coverage detected