diff 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
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java	Thu May 03 05:59:52 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java	Thu May 03 07:48:12 2012 +0000
@@ -386,6 +386,16 @@
 
 
     /**
+     * Parses the attribute whether to show line labels background or not,
+     * defaults to false.
+     * @param theme The theme.
+     */
+    public static boolean parseShowLineLabelBG(Document theme) {
+        String show = XMLUtils.xpathString(theme, XPATH_LINE_LABEL_SHOWBG, null);
+        return parseBoolean(show, false);
+    }
+
+    /**
      * Parse a string like "103, 100, 0" and return a corresping color.
      * @param rgbtext Color as string representation, e.g. "255,0,20".
      * @return Color, null in case of issues.

http://dive4elements.wald.intevation.org