Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 3155:74c974b10c75
Output code to trackdown the linecolor problem
flys-artifacts/trunk@4767 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Sun, 24 Jun 2012 06:51:05 +0000 |
parents | 1d79c85bd8c2 |
children | 8c78c707aa2d |
comparison
equal
deleted
inserted
replaced
3154:a08538e21b55 | 3155:74c974b10c75 |
---|---|
191 } | 191 } |
192 | 192 |
193 | 193 |
194 public static Color parsePointColor(Document theme) { | 194 public static Color parsePointColor(Document theme) { |
195 String color = XMLUtils.xpathString(theme, XPATH_POINT_COLOR, null); | 195 String color = XMLUtils.xpathString(theme, XPATH_POINT_COLOR, null); |
196 | 196 logger.debug("parsePointColor(): color = " + color); |
197 return parseColor(color); | 197 return parseColor(color); |
198 } | 198 } |
199 | 199 |
200 | 200 |
201 /** | 201 /** |
594 * Gets color from color field. | 594 * Gets color from color field. |
595 * @param theme the theme document. | 595 * @param theme the theme document. |
596 * @return color. | 596 * @return color. |
597 */ | 597 */ |
598 public static Color parseLineColorField(Document theme) { | 598 public static Color parseLineColorField(Document theme) { |
599 return parseRGB(getLineColorString(theme)); | 599 String lineColorStr = getLineColorString(theme); |
600 logger.debug("parseLineColorField: lineColorStr = " + | |
601 (lineColorStr == null ? "null" : lineColorStr)); | |
602 return parseRGB(lineColorStr); | |
600 } | 603 } |
601 | 604 |
602 | 605 |
603 public static boolean parseShowMinimum(Document theme) { | 606 public static boolean parseShowMinimum(Document theme) { |
604 return parseBoolean(getShowMinimum(theme), false); | 607 return parseBoolean(getShowMinimum(theme), false); |