diff flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 4633:fc52ee878412

Preparations for autogenerated riveraxis WMSs.
author Christian Lins <christian.lins@intevation.de>
date Tue, 04 Dec 2012 14:19:59 +0100
parents 047c965ea542
children 85876e3a5346
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java	Tue Dec 04 13:20:38 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java	Tue Dec 04 14:19:59 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