Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java @ 3090:22def36d37b7
Apply point color in XYStyle.
flys-artifacts/trunk@4689 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 18 Jun 2012 12:29:29 +0000 |
parents | 5642a83420f2 |
children | bbb488b145ce |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java Mon Jun 18 11:31:39 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeAccess.java Mon Jun 18 12:29:29 2012 +0000 @@ -23,6 +23,7 @@ protected String textOrientation; protected Color textBackground; protected Boolean showTextBackground; + protected Color pointColor; public ThemeAccess(Document theme) { @@ -100,6 +101,19 @@ } + public Color parsePointColor() { + if (pointColor == null) { + pointColor = ThemeUtil.parsePointColor(theme); + + if (pointColor == null) { + return parseLineColorField(); + } + } + + return pointColor; + } + + public LineStyle parseLineStyle() { return new LineStyle(parseLineColorField(), Integer.valueOf(parseLineWidth())); }