diff flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java @ 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 76eeb3b4358e
children b0ba96bbf01d
line wrap: on
line diff
--- 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