Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 2663:33d61e2a49a2
Added and respect two new properties of waterlevels in cross-sections.
flys-artifacts/trunk@4339 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 03 May 2012 08:56:19 +0000 |
parents | bdc86e61428c |
children | 6da7e064ae90 |
comparison
equal
deleted
inserted
replaced
2662:bdc86e61428c | 2663:33d61e2a49a2 |
---|---|
70 public final static String XPATH_LINE_LABEL_BGCOLOR = | 70 public final static String XPATH_LINE_LABEL_BGCOLOR = |
71 "/theme/field[@name='linelabelbgcolor']/@default"; | 71 "/theme/field[@name='linelabelbgcolor']/@default"; |
72 | 72 |
73 public final static String XPATH_LINE_LABEL_SHOWBG = | 73 public final static String XPATH_LINE_LABEL_SHOWBG = |
74 "/theme/field[@name='linelabelshowbg']/@default"; | 74 "/theme/field[@name='linelabelshowbg']/@default"; |
75 | |
76 public final static String XPATH_SHOW_WIDTH = | |
77 "/theme/field[@name='showwidth']/@default"; | |
78 | |
79 public final static String XPATH_SHOW_LEVEL = | |
80 "/theme/field[@name='showwidth']/@default"; | |
75 | 81 |
76 public final static String XPATH_TRANSPARENCY = | 82 public final static String XPATH_TRANSPARENCY = |
77 "/theme/field[@name='transparent']/@default"; | 83 "/theme/field[@name='transparent']/@default"; |
78 | 84 |
79 public final static String XPATH_TEXT_COLOR = | 85 public final static String XPATH_TEXT_COLOR = |
340 | 346 |
341 public static int parseLineLabelStyle(Document theme) { | 347 public static int parseLineLabelStyle(Document theme) { |
342 return parseTextStyle(theme, XPATH_LINE_LABEL_STYLE); | 348 return parseTextStyle(theme, XPATH_LINE_LABEL_STYLE); |
343 } | 349 } |
344 | 350 |
351 | |
352 public static boolean parseShowWidth(Document theme) { | |
353 String show = XMLUtils.xpathString(theme, XPATH_SHOW_WIDTH, null); | |
354 return parseBoolean(show, false); | |
355 } | |
356 | |
357 public static boolean parseShowLevel(Document theme) { | |
358 String show = XMLUtils.xpathString(theme, XPATH_SHOW_LEVEL, null); | |
359 return parseBoolean(show, false); | |
360 } | |
345 | 361 |
346 /** | 362 /** |
347 * Parses the textorientation, defaults to 'vertical'. | 363 * Parses the textorientation, defaults to 'vertical'. |
348 * @param theme The theme. | 364 * @param theme The theme. |
349 */ | 365 */ |