diff 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
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java	Wed May 02 19:54:58 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java	Wed May 02 22:30:27 2012 +0000
@@ -266,6 +266,19 @@
         return parseRGB(getTextColorString(theme));
     }
 
+    
+    /** Parse color for line label(s text). */
+    public static Color parseLineLabelTextColor(Document theme) {
+        return parseRGB(getLineLabelTextColorString(theme));
+    }
+
+    /** Parse bg color for line label(s text). */
+    public static Color parseLineLabelBGColor(Document theme) {
+        return parseRGB(getLineLabelBGColorString(theme));
+    }
+
+    // TODO showbg and bg color for linelabels
+
 
     /**
      * Parses the font.
@@ -419,6 +432,13 @@
         return XMLUtils.xpathString(theme, XPATH_TEXT_COLOR, null);
     }
 
+    public static String getLineLabelTextColorString(Document theme) {
+        return XMLUtils.xpathString(theme, XPATH_LINE_LABEL_COLOR, null);
+    }
+
+    public static String getLineLabelBGColorString(Document theme) {
+        return XMLUtils.xpathString(theme, XPATH_LINE_LABEL_BGCOLOR, null);
+    }
 
     public static String getSymbol(Document theme) {
         return XMLUtils.xpathString(theme, XPATH_SYMBOL, null);

http://dive4elements.wald.intevation.org