Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 2666:6da7e064ae90
Allow basic and styled area labels, yet on static position within plot.
flys-artifacts/trunk@4344 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 03 May 2012 20:27:01 +0000 |
parents | 33d61e2a49a2 |
children | 2be59d5b342c |
comparison
equal
deleted
inserted
replaced
2665:bcf4011fa3f1 | 2666:6da7e064ae90 |
---|---|
79 public final static String XPATH_SHOW_LEVEL = | 79 public final static String XPATH_SHOW_LEVEL = |
80 "/theme/field[@name='showwidth']/@default"; | 80 "/theme/field[@name='showwidth']/@default"; |
81 | 81 |
82 public final static String XPATH_TRANSPARENCY = | 82 public final static String XPATH_TRANSPARENCY = |
83 "/theme/field[@name='transparent']/@default"; | 83 "/theme/field[@name='transparent']/@default"; |
84 | |
85 public final static String XPATH_SHOW_AREA = | |
86 "/theme/field[@name='showarea']/@default"; | |
84 | 87 |
85 public final static String XPATH_TEXT_COLOR = | 88 public final static String XPATH_TEXT_COLOR = |
86 "/theme/field[@name='textcolor']/@default"; | 89 "/theme/field[@name='textcolor']/@default"; |
87 | 90 |
88 public final static String XPATH_TEXT_SIZE = | 91 public final static String XPATH_TEXT_SIZE = |
243 public static boolean parseShowPoints(Document theme) { | 246 public static boolean parseShowPoints(Document theme) { |
244 String show = XMLUtils.xpathString(theme, XPATH_SHOW_POINTS, null); | 247 String show = XMLUtils.xpathString(theme, XPATH_SHOW_POINTS, null); |
245 return parseBoolean(show, false); | 248 return parseBoolean(show, false); |
246 } | 249 } |
247 | 250 |
251 /** | |
252 * Parses the attribute 'showarea', defaults to false. | |
253 * @param theme The theme. | |
254 */ | |
255 public static boolean parseShowArea(Document theme) { | |
256 String show = XMLUtils.xpathString(theme, XPATH_SHOW_AREA, null); | |
257 return parseBoolean(show, false); | |
258 } | |
248 | 259 |
249 /** | 260 /** |
250 * Parses the attribute 'showlines', defaults to true. | 261 * Parses the attribute 'showlines', defaults to true. |
251 * @param theme The theme. | 262 * @param theme The theme. |
252 */ | 263 */ |