diff flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java @ 2412:451b25878105

Partial fix flys/issue500 (text bg of some annotations). flys-artifacts/trunk@4042 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 13 Feb 2012 15:31:17 +0000
parents c68f4f227c09
children 5144369d5961
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java	Mon Feb 13 14:41:45 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java	Mon Feb 13 15:31:17 2012 +0000
@@ -123,11 +123,13 @@
         }
     }
 
+
     public TextStyle parseTextStyle() {
         return new TextStyle(parseTextColor(), parseTextFont(),
-            parseTextBackground(), false);
+            parseTextBackground(), parseShowTextBackground());
     }
 
+
     public static class TextStyle {
         protected Color   textColor;
         protected Font    font;
@@ -146,6 +148,9 @@
         public void apply(XYTextAnnotation ta) {
             ta.setPaint(textColor);
             ta.setFont(font);
+            if (this.showBg) {
+                ta.setBackgroundPaint(bgColor);
+            }
         }
     }
 }

http://dive4elements.wald.intevation.org