comparison flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.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 8c78c707aa2d
children 1dca41dba135
comparison
equal deleted inserted replaced
3204:19ce06eb56c3 3205:bbb488b145ce
420 * Parses the textorientation, defaults to 'vertical'. 420 * Parses the textorientation, defaults to 'vertical'.
421 * @param theme The theme. 421 * @param theme The theme.
422 */ 422 */
423 public static String parseTextOrientation(Document theme) { 423 public static String parseTextOrientation(Document theme) {
424 String o = XMLUtils.xpathString(theme, XPATH_TEXT_ORIENTATION, null); 424 String o = XMLUtils.xpathString(theme, XPATH_TEXT_ORIENTATION, null);
425 if (o == null || o.length() == 0) { 425 if ("true".equals(o)) {
426 return "vertical";
427 }
428 if(o.equals("true")) {
429 return "horizontal"; 426 return "horizontal";
430 } 427 }
431 else { 428 else {
432 return "vertical"; 429 return "vertical";
433 } 430 }

http://dive4elements.wald.intevation.org