Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/ChartSettings.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 6dfc3a1fc70d |
children | 3f619f8dfa8e 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ChartSettings.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/ChartSettings.java Thu Jan 18 20:12:01 2018 +0100 @@ -229,14 +229,21 @@ section.setIdentifier(id); section.setLabel(label); - section.setFontSize(Integer.parseInt(fSize.length() > 0 ? fSize : "-1")); + section.setFontSize( + Integer.parseInt(fSize.length() > 0 ? fSize : "-1")); section.setFixed(Boolean.valueOf(fixation)); - if (upTime != null && !upTime.isEmpty() && lowTime != null && !lowTime.isEmpty()) { + if (upTime != null + && !upTime.isEmpty() + && lowTime != null + && !lowTime.isEmpty() + ) { section.setLowerTimeRange(Long.parseLong(lowTime)); section.setUpperTimeRange(Long.parseLong(upTime)); } else { - section.setLowerRange(Double.parseDouble(low.length() > 0 ? low : "0")); - section.setUpperRange(Double.parseDouble(up.length() > 0 ? up : "0")); + section.setLowerRange( + Double.parseDouble(low.length() > 0 ? low : "0")); + section.setUpperRange( + Double.parseDouble(up.length() > 0 ? up : "0")); } section.setSuggestedLabel(sugLabel); @@ -283,7 +290,8 @@ String vis = XMLUtils.xpathString(legend, "legend/visibility", null); String fSize = XMLUtils.xpathString(legend, "legend/font-size", null); - String lthre = XMLUtils.xpathString(legend, "legend/aggregation-threshold", null); + String lthre = XMLUtils.xpathString( + legend, "legend/aggregation-threshold", null); if (log.isDebugEnabled()) { log.debug("Found legend visibility: '" + vis + "'"); @@ -292,8 +300,10 @@ } section.setVisibility(Boolean.valueOf(vis)); - section.setFontSize(Integer.valueOf(fSize.length() > 0 ? fSize : "-1")); - section.setAggregationThreshold(Integer.valueOf(lthre.length() >0 ? lthre : "-1")); + section.setFontSize( + Integer.valueOf(fSize.length() > 0 ? fSize : "-1")); + section.setAggregationThreshold( + Integer.valueOf(lthre.length() >0 ? lthre : "-1")); target.setLegendSection(section); }