changeset 3064:478e8d9d88ba

Add missing imports. flys-artifacts/trunk@4648 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Christian Lins <christian.lins@intevation.de>
date Wed, 13 Jun 2012 09:28:39 +0000
parents 33c167d6fff6
children ee653971fa84
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java
diffstat 2 files changed, 11 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Jun 12 13:20:48 2012 +0000
+++ b/flys-artifacts/ChangeLog	Wed Jun 13 09:28:39 2012 +0000
@@ -1,3 +1,8 @@
+2012-06-13	Christian Lins	<christian.lins@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/XYChartGenerator.java:
+	  Add missing imports and correct coding issues. 
+
 2012-06-12	Christian Lins	<christian.lins@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/model/fixings/FixAvSectorFacet.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Tue Jun 12 13:20:48 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Wed Jun 13 09:28:39 2012 +0000
@@ -28,6 +28,7 @@
 import org.jfree.chart.annotations.XYTextAnnotation;
 import org.jfree.chart.axis.NumberAxis;
 import org.jfree.chart.axis.ValueAxis;
+import org.jfree.chart.plot.Marker;
 import org.jfree.chart.plot.PlotOrientation;
 import org.jfree.chart.plot.XYPlot;
 import org.jfree.data.Range;
@@ -81,8 +82,6 @@
         protected int axisSymbol;
         /** List of assigned datasets (in order). */
         protected List<XYDataset> datasets;
-        /** List of assigned vertical markers */
-        protected List<Marker> domainMarkers = new ArrayList<Marker>();
         /** Range to use to include all given datasets. */
         protected Range range;
         /** Index of axis in plot. */
@@ -194,6 +193,8 @@
     /** List of annotations to insert in plot. */
     protected List<FLYSAnnotation> annotations;
 
+    protected List<Marker> domainMarkers = new ArrayList<Marker>();
+    
     /** The max X range to include all X values of all series for each axis. */
     protected Map<Integer, Bounds> xBounds;
 
@@ -366,16 +367,16 @@
      */
     public void addDomainMarker(Marker marker) {
         if (marker == null) {
-            return null;
+            return;
         }
 
-        this.domainMarkers.add(marker);
+        domainMarkers.add(marker);
     }
 
 
     protected void addMarkers(XYPlot plot) {
         for(Marker marker : domainMarkers) {
-            plot.addDomainMarker(plot);
+            plot.addDomainMarker(marker);
         }
     }
 

http://dive4elements.wald.intevation.org