Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StyledDomainMarker.java @ 3889:940cd2ef149f
Area transparency fix
flys-artifacts/trunk@5542 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 20 Sep 2012 20:35:44 +0000 |
parents | 34da25796c21 |
children | 85876e3a5346 |
comparison
equal
deleted
inserted
replaced
3888:44a071455709 | 3889:940cd2ef149f |
---|---|
7 | 7 |
8 import de.intevation.flys.utils.ThemeUtil; | 8 import de.intevation.flys.utils.ThemeUtil; |
9 | 9 |
10 /** | 10 /** |
11 * Marker that represents a highlighted interval. | 11 * Marker that represents a highlighted interval. |
12 * | |
12 * @author <a href="mailto:christian.lins@intevation.de">Christian Lins</a> | 13 * @author <a href="mailto:christian.lins@intevation.de">Christian Lins</a> |
13 */ | 14 */ |
14 public class StyledDomainMarker extends IntervalMarker { | 15 public class StyledDomainMarker extends IntervalMarker { |
15 | 16 |
16 private static final long serialVersionUID = -4369417661339512342L; | 17 private static final long serialVersionUID = -4369417661339512342L; |
24 ThemeUtil.getBackgroundColorString(theme)); | 25 ThemeUtil.getBackgroundColorString(theme)); |
25 fillColor = ThemeUtil.parseColor( | 26 fillColor = ThemeUtil.parseColor( |
26 ThemeUtil.getFillColorString(theme)); | 27 ThemeUtil.getFillColorString(theme)); |
27 useSecondColor(false); | 28 useSecondColor(false); |
28 | 29 |
29 int alpha = 100 - ThemeUtil.parseInteger(ThemeUtil.getTransparency(theme), 50); | 30 int alpha = 100 - ThemeUtil.parseInteger( |
31 ThemeUtil.getTransparencyString(theme), 50); | |
30 setAlpha(alpha / 100.0f); | 32 setAlpha(alpha / 100.0f); |
31 } | 33 } |
32 | 34 |
33 /** | 35 /** |
34 * To properly differentiate several styled domain markers side by side, | 36 * To properly differentiate several styled domain markers side by side, |