comparison flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 2660:1a044c51abe4

Respect colors of theme for linelabels. flys-artifacts/trunk@4334 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 02 May 2012 22:30:27 +0000
parents 4d8959a4b49d
children bdc86e61428c
comparison
equal deleted inserted replaced
2659:4d8959a4b49d 2660:1a044c51abe4
263 * @param theme The theme. 263 * @param theme The theme.
264 */ 264 */
265 public static Color parseTextColor(Document theme) { 265 public static Color parseTextColor(Document theme) {
266 return parseRGB(getTextColorString(theme)); 266 return parseRGB(getTextColorString(theme));
267 } 267 }
268
269
270 /** Parse color for line label(s text). */
271 public static Color parseLineLabelTextColor(Document theme) {
272 return parseRGB(getLineLabelTextColorString(theme));
273 }
274
275 /** Parse bg color for line label(s text). */
276 public static Color parseLineLabelBGColor(Document theme) {
277 return parseRGB(getLineLabelBGColorString(theme));
278 }
279
280 // TODO showbg and bg color for linelabels
268 281
269 282
270 /** 283 /**
271 * Parses the font. 284 * Parses the font.
272 * @param theme The theme. 285 * @param theme The theme.
417 430
418 public static String getTextColorString(Document theme) { 431 public static String getTextColorString(Document theme) {
419 return XMLUtils.xpathString(theme, XPATH_TEXT_COLOR, null); 432 return XMLUtils.xpathString(theme, XPATH_TEXT_COLOR, null);
420 } 433 }
421 434
435 public static String getLineLabelTextColorString(Document theme) {
436 return XMLUtils.xpathString(theme, XPATH_LINE_LABEL_COLOR, null);
437 }
438
439 public static String getLineLabelBGColorString(Document theme) {
440 return XMLUtils.xpathString(theme, XPATH_LINE_LABEL_BGCOLOR, null);
441 }
422 442
423 public static String getSymbol(Document theme) { 443 public static String getSymbol(Document theme) {
424 return XMLUtils.xpathString(theme, XPATH_SYMBOL, null); 444 return XMLUtils.xpathString(theme, XPATH_SYMBOL, null);
425 } 445 }
426 446

http://dive4elements.wald.intevation.org