Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
2411:7e0be3e5dfaa | 2412:451b25878105 |
---|---|
121 public Color getColor() { | 121 public Color getColor() { |
122 return lineColor; | 122 return lineColor; |
123 } | 123 } |
124 } | 124 } |
125 | 125 |
126 | |
126 public TextStyle parseTextStyle() { | 127 public TextStyle parseTextStyle() { |
127 return new TextStyle(parseTextColor(), parseTextFont(), | 128 return new TextStyle(parseTextColor(), parseTextFont(), |
128 parseTextBackground(), false); | 129 parseTextBackground(), parseShowTextBackground()); |
129 } | 130 } |
131 | |
130 | 132 |
131 public static class TextStyle { | 133 public static class TextStyle { |
132 protected Color textColor; | 134 protected Color textColor; |
133 protected Font font; | 135 protected Font font; |
134 protected Color bgColor; | 136 protected Color bgColor; |
144 } | 146 } |
145 | 147 |
146 public void apply(XYTextAnnotation ta) { | 148 public void apply(XYTextAnnotation ta) { |
147 ta.setPaint(textColor); | 149 ta.setPaint(textColor); |
148 ta.setFont(font); | 150 ta.setFont(font); |
151 if (this.showBg) { | |
152 ta.setBackgroundPaint(bgColor); | |
153 } | |
149 } | 154 } |
150 } | 155 } |
151 } | 156 } |
152 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 157 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |