diff flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 4645:105463e2234f

Merged.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 05 Dec 2012 12:59:32 +0100
parents fc52ee878412
children 85876e3a5346
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java	Mon Dec 03 11:02:28 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java	Wed Dec 05 12:59:32 2012 +0100
@@ -623,7 +623,14 @@
     }
 
 
-    public static String createWSPLGENStyle(Document theme) {
+    /**
+     * Creates a MapserverStyle from the given XML theme.
+     * This method uses a start- and endcolor to interpolate a
+     * given number of color classes for the MapserverStyle.
+     * @param theme
+     * @return String representation of the MapserverStyle
+     */
+    public static String createDynamicMapserverStyle(Document theme) {
         MapserverStyle ms = new MapserverStyle();
 
         String strStartColor = XMLUtils.xpathString(theme, XPATH_WSPLGEN_STARTCOLOR, null);

http://dive4elements.wald.intevation.org