comparison flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 2662:bdc86e61428c

Respect show line label bg setting. flys-artifacts/trunk@4337 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 03 May 2012 07:48:12 +0000
parents 1a044c51abe4
children 33d61e2a49a2
comparison
equal deleted inserted replaced
2661:17927c60ac1c 2662:bdc86e61428c
382 public static boolean parseShowTextBackground(Document theme) { 382 public static boolean parseShowTextBackground(Document theme) {
383 String show = XMLUtils.xpathString(theme, XPATH_SHOW_BACKGROUND, null); 383 String show = XMLUtils.xpathString(theme, XPATH_SHOW_BACKGROUND, null);
384 return parseBoolean(show, false); 384 return parseBoolean(show, false);
385 } 385 }
386 386
387
388 /**
389 * Parses the attribute whether to show line labels background or not,
390 * defaults to false.
391 * @param theme The theme.
392 */
393 public static boolean parseShowLineLabelBG(Document theme) {
394 String show = XMLUtils.xpathString(theme, XPATH_LINE_LABEL_SHOWBG, null);
395 return parseBoolean(show, false);
396 }
387 397
388 /** 398 /**
389 * Parse a string like "103, 100, 0" and return a corresping color. 399 * Parse a string like "103, 100, 0" and return a corresping color.
390 * @param rgbtext Color as string representation, e.g. "255,0,20". 400 * @param rgbtext Color as string representation, e.g. "255,0,20".
391 * @return Color, null in case of issues. 401 * @return Color, null in case of issues.

http://dive4elements.wald.intevation.org