Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java Thu Jun 28 13:07:27 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java Thu Jun 28 13:52:12 2012 +0000 @@ -75,9 +75,6 @@ public String parseTextOrientation() { if (textOrientation == null) { textOrientation = ThemeUtil.parseTextOrientation(theme); - if (textOrientation == null) { - textOrientation = "horizontal"; - } } return textOrientation; } @@ -138,8 +135,11 @@ public TextStyle parseTextStyle() { - return new TextStyle(parseTextColor(), parseTextFont(), - parseTextBackground(), parseShowTextBackground(), + return new TextStyle( + parseTextColor(), + parseTextFont(), + parseTextBackground(), + parseShowTextBackground(), !parseTextOrientation().equals("horizontal")); } @@ -171,7 +171,7 @@ ta.setRotationAngle(270f*Math.PI/180f); } else { - ta.setRotationAngle(0f*Math.PI/180f); + ta.setRotationAngle(0); } }