comparison flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 4283:7140bb0f92b0

Added new themes for W and Q markers in Historical Discharge WQ charts. ThemeUtil.parseLineColorField() will now use parseColor() to parse the color string. This enables using hex colors in theme configs.
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 29 Oct 2012 06:54:48 +0100
parents 940cd2ef149f
children ecd237428af6
comparison
equal deleted inserted replaced
4282:8b4988815974 4283:7140bb0f92b0
590 */ 590 */
591 public static Color parseLineColorField(Document theme) { 591 public static Color parseLineColorField(Document theme) {
592 String lineColorStr = getLineColorString(theme); 592 String lineColorStr = getLineColorString(theme);
593 logger.debug("parseLineColorField: lineColorStr = " + 593 logger.debug("parseLineColorField: lineColorStr = " +
594 (lineColorStr == null ? "null" : lineColorStr)); 594 (lineColorStr == null ? "null" : lineColorStr));
595 return parseRGB(lineColorStr); 595 return parseColor(lineColorStr);
596 } 596 }
597 597
598 598
599 public static boolean parseShowMinimum(Document theme) { 599 public static boolean parseShowMinimum(Document theme) {
600 return parseBoolean(getShowMinimum(theme), false); 600 return parseBoolean(getShowMinimum(theme), false);

http://dive4elements.wald.intevation.org