comparison 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
comparison
equal deleted inserted replaced
4644:dae7e6388a47 4645:105463e2234f
621 public static boolean parseShowMaximum(Document theme) { 621 public static boolean parseShowMaximum(Document theme) {
622 return parseBoolean(getShowMaximum(theme), false); 622 return parseBoolean(getShowMaximum(theme), false);
623 } 623 }
624 624
625 625
626 public static String createWSPLGENStyle(Document theme) { 626 /**
627 * Creates a MapserverStyle from the given XML theme.
628 * This method uses a start- and endcolor to interpolate a
629 * given number of color classes for the MapserverStyle.
630 * @param theme
631 * @return String representation of the MapserverStyle
632 */
633 public static String createDynamicMapserverStyle(Document theme) {
627 MapserverStyle ms = new MapserverStyle(); 634 MapserverStyle ms = new MapserverStyle();
628 635
629 String strStartColor = XMLUtils.xpathString(theme, XPATH_WSPLGEN_STARTCOLOR, null); 636 String strStartColor = XMLUtils.xpathString(theme, XPATH_WSPLGEN_STARTCOLOR, null);
630 Color startColor = strStartColor != null ? parseColor(strStartColor) : new Color(178, 201, 215); 637 Color startColor = strStartColor != null ? parseColor(strStartColor) : new Color(178, 201, 215);
631 String strEndColor = XMLUtils.xpathString(theme, XPATH_WSPLGEN_ENDCOLOR, null); 638 String strEndColor = XMLUtils.xpathString(theme, XPATH_WSPLGEN_ENDCOLOR, null);

http://dive4elements.wald.intevation.org