comparison flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java @ 3205:bbb488b145ce

Set text orientation to horizontal for points in Fixation W/Q curve flys-artifacts/trunk@4822 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Christian Lins <christian.lins@intevation.de>
date Thu, 28 Jun 2012 13:52:12 +0000
parents 22def36d37b7
children ed07dd55f487
comparison
equal deleted inserted replaced
3204:19ce06eb56c3 3205:bbb488b145ce
73 73
74 74
75 public String parseTextOrientation() { 75 public String parseTextOrientation() {
76 if (textOrientation == null) { 76 if (textOrientation == null) {
77 textOrientation = ThemeUtil.parseTextOrientation(theme); 77 textOrientation = ThemeUtil.parseTextOrientation(theme);
78 if (textOrientation == null) {
79 textOrientation = "horizontal";
80 }
81 } 78 }
82 return textOrientation; 79 return textOrientation;
83 } 80 }
84 81
85 82
136 } 133 }
137 } 134 }
138 135
139 136
140 public TextStyle parseTextStyle() { 137 public TextStyle parseTextStyle() {
141 return new TextStyle(parseTextColor(), parseTextFont(), 138 return new TextStyle(
142 parseTextBackground(), parseShowTextBackground(), 139 parseTextColor(),
140 parseTextFont(),
141 parseTextBackground(),
142 parseShowTextBackground(),
143 !parseTextOrientation().equals("horizontal")); 143 !parseTextOrientation().equals("horizontal"));
144 } 144 }
145 145
146 146
147 public static class TextStyle { 147 public static class TextStyle {
169 } 169 }
170 if (this.isVertical) { 170 if (this.isVertical) {
171 ta.setRotationAngle(270f*Math.PI/180f); 171 ta.setRotationAngle(270f*Math.PI/180f);
172 } 172 }
173 else { 173 else {
174 ta.setRotationAngle(0f*Math.PI/180f); 174 ta.setRotationAngle(0);
175 } 175 }
176 } 176 }
177 177
178 public void apply(StableXYDifferenceRenderer renderer) { 178 public void apply(StableXYDifferenceRenderer renderer) {
179 renderer.setLabelColor(textColor); 179 renderer.setLabelColor(textColor);

http://dive4elements.wald.intevation.org