# HG changeset patch # User Felix Wolfsteller # Date 1340461862 0 # Node ID 46b9391b122a3be540abac09a37fdecd20af0c2e # Parent 368d1837ce5d07968ca29bde0e50ceea152a8858 Parse legend aggregation threshold value for settings. flys-artifacts/trunk@4765 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 368d1837ce5d -r 46b9391b122a flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Sat Jun 23 08:09:42 2012 +0000 +++ b/flys-artifacts/ChangeLog Sat Jun 23 14:31:02 2012 +0000 @@ -1,3 +1,8 @@ +2012-06-23 Felix Wolfsteller + + * src/main/java/de/intevation/flys/exports/ChartSettings.java: + Parse and set legend aggregation value. + 2012-06-23 Sascha L. Teichmann * src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java, diff -r 368d1837ce5d -r 46b9391b122a flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java Sat Jun 23 08:09:42 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java Sat Jun 23 14:31:02 2012 +0000 @@ -250,14 +250,17 @@ 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); if (logger.isDebugEnabled()) { logger.debug("Found legend visibility: '" + vis + "'"); logger.debug("Found legend font size : '" + fSize + "'"); + logger.debug("Found legend aggregation threshold : '" + lthre + "'"); } section.setVisibility(Boolean.valueOf(vis)); section.setFontSize(Integer.valueOf(fSize.length() > 0 ? fSize : "-1")); + section.setAggregationThreshold(Integer.valueOf(lthre.length() >0 ? lthre : "-1")); target.setLegendSection(section); }