diff flys-artifacts/src/main/java/de/intevation/flys/jfree/XYStyle.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 bdc86e61428c
children 5a0aef74c316
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/XYStyle.java	Mon Jun 18 11:31:39 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/XYStyle.java	Mon Jun 18 12:29:29 2012 +0000
@@ -37,6 +37,7 @@
         applyShowLine(r, idx);
         applyShowPoints(r, idx);
         applyPointSize(r, idx);
+        applyPointColor(r, idx);
         applyShowMinimum(r, idx);
         applyShowMaximum(r, idx);
         applyShowLineLabel(r, idx);
@@ -141,6 +142,17 @@
     }
 
 
+    protected void applyPointColor(XYLineAndShapeRenderer r, int idx) {
+        Color c = ThemeUtil.parsePointColor(theme);
+
+        if (c != null) {
+            r.setSeriesFillPaint(idx, c);
+            r.setUseFillPaint(true);
+            r.setDrawOutlines(false);
+        }
+    }
+
+
     /**
      * Sets form and visibility of points.
      */

http://dive4elements.wald.intevation.org