Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 2032:5746c74c69cf
Added a transparency setting to area theme style.
flys-artifacts/trunk@3497 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 20 Dec 2011 15:06:41 +0000 |
parents | 796dfe96b6b2 |
children | 4cdd9c4896f6 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java Tue Dec 20 12:06:35 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java Tue Dec 20 15:06:41 2011 +0000 @@ -44,6 +44,9 @@ public final static String XPATH_SHOW_LINE = "/theme/field[@name='showlines']/@default"; + public final static String XPATH_TRANSPARENCY = + "/theme/field[@name='transparent']/@default"; + public final static String XPATH_TEXT_COLOR = "/theme/field[@name='textcolor']/@default"; @@ -318,6 +321,10 @@ return XMLUtils.xpathString(theme, XPATH_SYMBOL, null); } + public static String getTransparencyString(Document theme) { + return XMLUtils.xpathString(theme, XPATH_TRANSPARENCY, null); + } + /** * Gets color from color field. @@ -332,6 +339,9 @@ return parseBoolean(getShowBorderString(theme), false); } + public static boolean parseTransparency(Document theme) { + return parseBoolean(getTransparencyString(theme), false); + } /** * Gets color from color field.