Mercurial > dive4elements > river
changeset 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 (2012-02-13) |
parents | 7e0be3e5dfaa |
children | 4b7870e102f4 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java |
diffstat | 2 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon Feb 13 14:41:45 2012 +0000 +++ b/flys-artifacts/ChangeLog Mon Feb 13 15:31:17 2012 +0000 @@ -1,3 +1,10 @@ +2012-02-13 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + Partial Fix flys/issue500 + + * src/main/java/de/intevation/flys/themes/ThemeAccess.java: + Parse whether to show text background. Apply to textannotation. + 2012-02-13 Felix Wolfsteller <felix.wolfsteller@intevation.de> Fix flys/issue490
--- 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); + } } } }