Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java @ 2161:c68f4f227c09
Somewhat unified Annotation handling, use jfreechart-house-toolkit instead of custom StickyAxisAnnotation.
flys-artifacts/trunk@3747 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 23 Jan 2012 10:44:34 +0000 |
parents | 2336927cb096 |
children | 451b25878105 |
comparison
equal
deleted
inserted
replaced
2160:8428de5846e8 | 2161:c68f4f227c09 |
---|---|
99 | 99 |
100 /** | 100 /** |
101 more of this | 101 more of this |
102 */ | 102 */ |
103 | 103 |
104 public LineStyle parseLineStyle() { | |
105 return new LineStyle(parseLineColorField(), Integer.valueOf(parseLineWidth())); | |
106 } | |
107 | |
108 public static class LineStyle { | |
109 protected Color lineColor; | |
110 protected int lineWidth; | |
111 | |
112 public LineStyle(Color color, int width) { | |
113 this.lineColor = color; | |
114 this.lineWidth = width; | |
115 } | |
116 | |
117 public int getWidth() { | |
118 return lineWidth; | |
119 } | |
120 | |
121 public Color getColor() { | |
122 return lineColor; | |
123 } | |
124 } | |
125 | |
104 public TextStyle parseTextStyle() { | 126 public TextStyle parseTextStyle() { |
105 return new TextStyle(parseTextColor(), parseTextFont(), | 127 return new TextStyle(parseTextColor(), parseTextFont(), |
106 parseTextBackground(), false); | 128 parseTextBackground(), false); |
107 } | 129 } |
108 | 130 |