Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 3286:f062b5a90e26
Add showpointlabel style attribute
flys-artifacts/trunk@4948 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 12 Jul 2012 11:51:32 +0000 |
parents | 17ca0a43027a |
children | f091f2f55f88 |
comparison
equal
deleted
inserted
replaced
3285:dc083f61253a | 3286:f062b5a90e26 |
---|---|
60 "/theme/field[@name='showhorizontalline']/@default"; | 60 "/theme/field[@name='showhorizontalline']/@default"; |
61 | 61 |
62 public final static String XPATH_SHOW_LINE_LABEL = | 62 public final static String XPATH_SHOW_LINE_LABEL = |
63 "/theme/field[@name='showlinelabel']/@default"; | 63 "/theme/field[@name='showlinelabel']/@default"; |
64 | 64 |
65 public final static String XPATH_SHOW_POINT_LABEL = | |
66 "/theme/field[@name='showpointlabel']/@default"; | |
67 | |
65 public final static String XPATH_LINE_LABEL_FONT = | 68 public final static String XPATH_LINE_LABEL_FONT = |
66 "/theme/field[@name='linelabelfont']/@default"; | 69 "/theme/field[@name='linelabelfont']/@default"; |
67 | 70 |
68 public final static String XPATH_LINE_LABEL_COLOR = | 71 public final static String XPATH_LINE_LABEL_COLOR = |
69 "/theme/field[@name='linelabelcolor']/@default"; | 72 "/theme/field[@name='linelabelcolor']/@default"; |
317 * Parses the attribute 'showlinelabel', defaults to true. | 320 * Parses the attribute 'showlinelabel', defaults to true. |
318 * @param theme The theme. | 321 * @param theme The theme. |
319 */ | 322 */ |
320 public static boolean parseShowLineLabel(Document theme) { | 323 public static boolean parseShowLineLabel(Document theme) { |
321 String show = XMLUtils.xpathString(theme, XPATH_SHOW_LINE_LABEL, null); | 324 String show = XMLUtils.xpathString(theme, XPATH_SHOW_LINE_LABEL, null); |
325 return parseBoolean(show, false); | |
326 } | |
327 | |
328 public static boolean parseShowPointLabel(Document theme) { | |
329 String show = XMLUtils.xpathString(theme, XPATH_SHOW_POINT_LABEL, null); | |
322 return parseBoolean(show, false); | 330 return parseBoolean(show, false); |
323 } | 331 } |
324 | 332 |
325 /** | 333 /** |
326 * Parses text color. | 334 * Parses text color. |