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

Method trim

ij/src/main/java/ij/gui/GenericDialog.java:1338–1344  ·  view source on GitHub ↗
(String value)

Source from the content-addressed store, hash-verified

1336 }
1337
1338 private String trim(String value) {
1339 if (value.endsWith(".0"))
1340 value = value.substring(0, value.length()-2);
1341 if (value.endsWith(".00"))
1342 value = value.substring(0, value.length()-3);
1343 return value;
1344 }
1345
1346 private void recordOption(Object component, String value) {
1347 if (labels==null)

Callers 7

getNextNumberMethod · 0.95
drawIconMethod · 0.45
saveLabelMethod · 0.45
setPlotObjectStyleMethod · 0.45
replaceSpacesEtcMethod · 0.45
getStyleStringMethod · 0.45

Calls 2

substringMethod · 0.80
lengthMethod · 0.65

Tested by

no test coverage detected