comparison 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
comparison
equal deleted inserted replaced
4632:02cf2b1dff84 4633:fc52ee878412
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