(String arg)
| 41 | public 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(""); |
nothing calls this directly
no test coverage detected