# HG changeset patch # User Raimund Renkert # Date 1319185166 0 # Node ID 415ec0223dff55e6d49785dd82bbdff180d457d8 # Parent f7d890f4855f2c3b68eeba1c399b5bdb5a583a74 Renamed text background attribute and parse text attributes correctly. flys-artifacts/trunk@3052 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r f7d890f4855f -r 415ec0223dff flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Thu Oct 20 17:14:24 2011 +0000 +++ b/flys-artifacts/ChangeLog Fri Oct 21 08:19:26 2011 +0000 @@ -1,3 +1,12 @@ +2011-10-21 Raimund Renkert + + * doc/conf/themes.xml: + Renamed 'textbackground' to 'backgroundcolor' to have 'color' in the + attribute name. + + * src/main/java/de/intevation/flys/utils/ThemeUtil.java: + Process text attributes correctly. + 2011-10-20 Sascha L. Teichmann * src/main/java/de/intevation/flys/artifacts/services/CrossSectionKMService.java: diff -r f7d890f4855f -r 415ec0223dff flys-artifacts/doc/conf/themes.xml --- a/flys-artifacts/doc/conf/themes.xml Thu Oct 20 17:14:24 2011 +0000 +++ b/flys-artifacts/doc/conf/themes.xml Fri Oct 21 08:19:26 2011 +0000 @@ -525,9 +525,9 @@ - - - + + + diff -r f7d890f4855f -r 415ec0223dff flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java --- a/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java Thu Oct 20 17:14:24 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java Fri Oct 21 08:19:26 2011 +0000 @@ -43,7 +43,7 @@ "/theme/field[@name='textorientation']/@default"; public final static String XPATH_TEXT_BACKGROUND = - "/theme/field[@name='textbackground']/@default"; + "/theme/field[@name='backgroundcolor']/@default"; public final static String XPATH_SHOW_BACKGROUND = "/theme/field[@name='showbackground']/@default"; @@ -126,7 +126,8 @@ } int size = parseTextSize(theme); - Font f = new Font (font, 0, size); + int style = parseTextStyle(theme); + Font f = new Font (font, style, size); return f; } @@ -162,7 +163,12 @@ if (o == null || o.length() == 0) { return "vertical"; } - return o; + if(o.equals("true")) { + return "horizontal"; + } + else { + return "vertical"; + } }