Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StyledDomainMarker.java @ 3256:17ca0a43027a
Removed trailing whitespace
flys-artifacts/trunk@4890 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 07 Jul 2012 09:23:33 +0000 |
parents | 9a4707ec7800 |
children | 9422b559b2d5 |
comparison
equal
deleted
inserted
replaced
3255:4246851312e6 | 3256:17ca0a43027a |
---|---|
12 * @author <a href="mailto:christian.lins@intevation.de">Christian Lins</a> | 12 * @author <a href="mailto:christian.lins@intevation.de">Christian Lins</a> |
13 */ | 13 */ |
14 public class StyledDomainMarker extends IntervalMarker { | 14 public class StyledDomainMarker extends IntervalMarker { |
15 | 15 |
16 private static final long serialVersionUID = -4369410661339512342L; | 16 private static final long serialVersionUID = -4369410661339512342L; |
17 | 17 |
18 private final Color fillColor, backgroundColor; | 18 private final Color fillColor, backgroundColor; |
19 | 19 |
20 public StyledDomainMarker(double start, double end, Document theme) { | 20 public StyledDomainMarker(double start, double end, Document theme) { |
21 super(start, end); | 21 super(start, end); |
22 | 22 |
23 backgroundColor = ThemeUtil.parseColor( | 23 backgroundColor = ThemeUtil.parseColor( |
24 ThemeUtil.getBackgroundColorString(theme)); | 24 ThemeUtil.getBackgroundColorString(theme)); |
25 fillColor = ThemeUtil.parseColor( | 25 fillColor = ThemeUtil.parseColor( |
26 ThemeUtil.getFillColorString(theme)); | 26 ThemeUtil.getFillColorString(theme)); |
27 useSecondColor(false); | 27 useSecondColor(false); |
28 | 28 |
29 int alpha = ThemeUtil.parseInteger(ThemeUtil.getTransparencyAlpha(theme), 128); | 29 int alpha = ThemeUtil.parseInteger(ThemeUtil.getTransparencyAlpha(theme), 128); |
30 setAlpha(alpha / 255.0f); | 30 setAlpha(alpha / 255.0f); |
31 } | 31 } |
32 | 32 |
33 /** | 33 /** |
34 * To properly differentiate several styled domain markers side by side, | 34 * To properly differentiate several styled domain markers side by side, |
35 * we can use this switch to toggle between two colors. | 35 * we can use this switch to toggle between two colors. |
36 * @param secondColor | 36 * @param secondColor |
37 */ | 37 */ |