# HG changeset patch # User Christian Lins # Date 1339579719 0 # Node ID 478e8d9d88ba9fd9490de4a3dd1d17d62edae605 # Parent 33c167d6fff6866545a02aa2edfbaa6427441ae2 Add missing imports. flys-artifacts/trunk@4648 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 33c167d6fff6 -r 478e8d9d88ba flys-artifacts/ChangeLog --- 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 + + * src/main/java/de/intevation/flys/exports/XYChartGenerator.java: + Add missing imports and correct coding issues. + 2012-06-12 Christian Lins * src/main/java/de/intevation/flys/artifacts/model/fixings/FixAvSectorFacet.java: diff -r 33c167d6fff6 -r 478e8d9d88ba flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.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 datasets; - /** List of assigned vertical markers */ - protected List domainMarkers = new ArrayList(); /** 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 annotations; + protected List domainMarkers = new ArrayList(); + /** The max X range to include all X values of all series for each axis. */ protected Map 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); } }