changeset 3153:46b9391b122a

Parse legend aggregation threshold value for settings. flys-artifacts/trunk@4765 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Sat, 23 Jun 2012 14:31:02 +0000
parents 368d1837ce5d
children a08538e21b55
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/ChartSettings.java:
+	  Parse and set legend aggregation value.
+
 2012-06-23	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.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);
     }

http://dive4elements.wald.intevation.org