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

Method run

ij/src/main/java/ij/plugin/ImageInfo.java:43–56  ·  view source on GitHub ↗
(String arg)

Source from the content-addressed store, hash-verified

41public class ImageInfo implements PlugIn {
42
43 public void run(String arg) {
44 ImagePlus imp = WindowManager.getCurrentImage();
45 if (imp==null)
46 showInfo();
47 else {
48 String info = getImageInfo(imp);
49 if (info.contains("----"))
50 showInfo(imp, info, 450, 600);
51 else {
52 int inc = info.contains("No selection")?0:130;
53 showInfo(imp, info, 400, 500+inc);
54 }
55 }
56 }
57
58 private void showInfo() {
59 String s = new String("");

Callers

nothing calls this directly

Calls 4

getCurrentImageMethod · 0.95
showInfoMethod · 0.95
getImageInfoMethod · 0.95
containsMethod · 0.45

Tested by

no test coverage detected