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

Method showInfo

ij/src/main/java/ij/plugin/ImageInfo.java:58–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 private void showInfo() {
59 String s = new String("");
60 if (IJ.getInstance()!=null)
61 s += IJ.getInstance().getInfo()+"\n \n";
62 s += "No images are open\n";
63 Dimension screen = IJ.getScreenSize();
64 s += "ImageJ home: "+IJ.getDir("imagej")+"\n";
65 s += "Java home: "+System.getProperty("java.home")+"\n";
66 s += "Java version: "+IJ.javaVersion()+"\n";
67 s += "Screen size: "+screen.width+"x"+screen.height+"\n";
68 s += "GUI scale: "+IJ.d2s(Prefs.getGuiScale(),2)+"\n";
69 //s += "Active window: "+WindowManager.getActiveWindow()+"\n";
70 String path = Prefs.getCustomPropsPath();
71 if (path!=null)
72 s += "*Custom properties*: "+ path +"\n";
73 path = Prefs.getCustomPrefsPath();
74 if (path!=null)
75 s += "*Custom preferences*: "+ path +"\n";
76 //if (IJ.isMacOSX()) {
77 // String time = " ("+ImageWindow.setMenuBarTime+"ms)";
78 // s += "SetMenuBarCount: "+Menus.setMenuBarCount+time+"\n";
79 //}
80 new TextWindow("Info", s, 600, 300);
81 }
82
83 public String getImageInfo(ImagePlus imp) {
84 ImageProcessor ip = imp.getProcessor();

Callers 1

runMethod · 0.95

Calls 12

getInstanceMethod · 0.95
getScreenSizeMethod · 0.95
getDirMethod · 0.95
javaVersionMethod · 0.95
d2sMethod · 0.95
getGuiScaleMethod · 0.95
getCustomPropsPathMethod · 0.95
getCustomPrefsPathMethod · 0.95
logMethod · 0.95
getTitleMethod · 0.65
getInfoMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected