changeset 1963:6c24ffe946a5

Issue 413. Apply point size from theme attribute linewidth. flys-artifacts/trunk@3372 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 09 Dec 2011 10:33:40 +0000
parents 59622ba800c8
children 85e442933e6d
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/StyledXYSeries.java
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Dec 08 13:09:04 2011 +0000
+++ b/flys-artifacts/ChangeLog	Fri Dec 09 10:33:40 2011 +0000
@@ -1,3 +1,10 @@
+2011-12-09  Raimund Renkert <raimund.renkert@intevation.de>
+
+	Issue 413.
+
+	* src/main/java/de/intevation/flys/exports/StyledXYSeries.java:
+	  Apply point size from theme attribute linewidth.
+
 2011-12-08	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/model/CrossSectionFactory.java,
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/StyledXYSeries.java	Thu Dec 08 13:09:04 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/StyledXYSeries.java	Fri Dec 09 10:33:40 2011 +0000
@@ -87,7 +87,11 @@
 
     protected void applyShowPoints(XYLineAndShapeRenderer r, int idx) {
         boolean show = ThemeUtil.parseShowPoints(theme);
-        r.setSeriesShape(idx, new Ellipse2D.Double(-2.0, -2.0, 4.0, 4.0));
+        int size = ThemeUtil.parseLineWidth(theme);
+        r.setSeriesShape(idx, new Ellipse2D.Double(- size,
+                                                   - size,
+                                                   2 * size,
+                                                   2 * size));
         r.setSeriesShapesVisible(idx, show);
         r.setDrawOutlines(true);
     }

http://dive4elements.wald.intevation.org