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

Method getPropsInfo

ij/src/main/java/ij/ImagePlus.java:1705–1720  ·  view source on GitHub ↗

Returns information displayed by Image/Show Info command.

()

Source from the content-addressed store, hash-verified

1703
1704 /** Returns information displayed by Image/Show Info command. */
1705 public String getPropsInfo() {
1706 if (imageProperties==null || imageProperties.size()==0)
1707 return "0";
1708 String info2 = "";
1709 for (Enumeration en=imageProperties.keys(); en.hasMoreElements();) {
1710 String key = (String)en.nextElement();
1711 if (info2.length()>50) {
1712 info2 += "...";
1713 break;
1714 } else
1715 info2 += " " + key;
1716 }
1717 if (info2.length()>1)
1718 info2 = " (" + info2.substring(1) + ")";
1719 return imageProperties.size() + info2;
1720 }
1721
1722 /** Creates a set of image properties from an array of strings.
1723 * @see #getPropertiesAsArray

Callers 1

getInfoMethod · 0.80

Calls 3

substringMethod · 0.80
lengthMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected