Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java @ 3090:22def36d37b7
Apply point color in XYStyle.
flys-artifacts/trunk@4689 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 18 Jun 2012 12:29:29 +0000 |
parents | 5642a83420f2 |
children | bbb488b145ce |
comparison
equal
deleted
inserted
replaced
3089:7e4c8590067a | 3090:22def36d37b7 |
---|---|
21 protected Color textColor; | 21 protected Color textColor; |
22 protected Font font; | 22 protected Font font; |
23 protected String textOrientation; | 23 protected String textOrientation; |
24 protected Color textBackground; | 24 protected Color textBackground; |
25 protected Boolean showTextBackground; | 25 protected Boolean showTextBackground; |
26 protected Color pointColor; | |
26 | 27 |
27 | 28 |
28 public ThemeAccess(Document theme) { | 29 public ThemeAccess(Document theme) { |
29 this.theme = theme; | 30 this.theme = theme; |
30 } | 31 } |
98 } | 99 } |
99 return showTextBackground; | 100 return showTextBackground; |
100 } | 101 } |
101 | 102 |
102 | 103 |
104 public Color parsePointColor() { | |
105 if (pointColor == null) { | |
106 pointColor = ThemeUtil.parsePointColor(theme); | |
107 | |
108 if (pointColor == null) { | |
109 return parseLineColorField(); | |
110 } | |
111 } | |
112 | |
113 return pointColor; | |
114 } | |
115 | |
116 | |
103 public LineStyle parseLineStyle() { | 117 public LineStyle parseLineStyle() { |
104 return new LineStyle(parseLineColorField(), Integer.valueOf(parseLineWidth())); | 118 return new LineStyle(parseLineColorField(), Integer.valueOf(parseLineWidth())); |
105 } | 119 } |
106 | 120 |
107 public static class LineStyle { | 121 public static class LineStyle { |