comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 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 5642a83420f2
comparison
equal deleted inserted replaced
3063:33c167d6fff6 3064:478e8d9d88ba
26 import org.jfree.chart.annotations.XYBoxAnnotation; 26 import org.jfree.chart.annotations.XYBoxAnnotation;
27 import org.jfree.chart.annotations.XYLineAnnotation; 27 import org.jfree.chart.annotations.XYLineAnnotation;
28 import org.jfree.chart.annotations.XYTextAnnotation; 28 import org.jfree.chart.annotations.XYTextAnnotation;
29 import org.jfree.chart.axis.NumberAxis; 29 import org.jfree.chart.axis.NumberAxis;
30 import org.jfree.chart.axis.ValueAxis; 30 import org.jfree.chart.axis.ValueAxis;
31 import org.jfree.chart.plot.Marker;
31 import org.jfree.chart.plot.PlotOrientation; 32 import org.jfree.chart.plot.PlotOrientation;
32 import org.jfree.chart.plot.XYPlot; 33 import org.jfree.chart.plot.XYPlot;
33 import org.jfree.data.Range; 34 import org.jfree.data.Range;
34 import org.jfree.data.general.Series; 35 import org.jfree.data.general.Series;
35 import org.jfree.data.xy.XYSeries; 36 import org.jfree.data.xy.XYSeries;
79 private class XYAxisDataset implements AxisDataset { 80 private class XYAxisDataset implements AxisDataset {
80 /** Symbolic integer, but also coding the priority (0 goes first). */ 81 /** Symbolic integer, but also coding the priority (0 goes first). */
81 protected int axisSymbol; 82 protected int axisSymbol;
82 /** List of assigned datasets (in order). */ 83 /** List of assigned datasets (in order). */
83 protected List<XYDataset> datasets; 84 protected List<XYDataset> datasets;
84 /** List of assigned vertical markers */
85 protected List<Marker> domainMarkers = new ArrayList<Marker>();
86 /** Range to use to include all given datasets. */ 85 /** Range to use to include all given datasets. */
87 protected Range range; 86 protected Range range;
88 /** Index of axis in plot. */ 87 /** Index of axis in plot. */
89 protected int plotAxisIndex; 88 protected int plotAxisIndex;
90 89
192 private static Logger logger = Logger.getLogger(XYChartGenerator.class); 191 private static Logger logger = Logger.getLogger(XYChartGenerator.class);
193 192
194 /** List of annotations to insert in plot. */ 193 /** List of annotations to insert in plot. */
195 protected List<FLYSAnnotation> annotations; 194 protected List<FLYSAnnotation> annotations;
196 195
196 protected List<Marker> domainMarkers = new ArrayList<Marker>();
197
197 /** The max X range to include all X values of all series for each axis. */ 198 /** The max X range to include all X values of all series for each axis. */
198 protected Map<Integer, Bounds> xBounds; 199 protected Map<Integer, Bounds> xBounds;
199 200
200 /** The max Y range to include all Y values of all series for each axis. */ 201 /** The max Y range to include all Y values of all series for each axis. */
201 protected Map<Integer, Bounds> yBounds; 202 protected Map<Integer, Bounds> yBounds;
364 /** 365 /**
365 * Add the given vertical marker to the chart. 366 * Add the given vertical marker to the chart.
366 */ 367 */
367 public void addDomainMarker(Marker marker) { 368 public void addDomainMarker(Marker marker) {
368 if (marker == null) { 369 if (marker == null) {
369 return null; 370 return;
370 } 371 }
371 372
372 this.domainMarkers.add(marker); 373 domainMarkers.add(marker);
373 } 374 }
374 375
375 376
376 protected void addMarkers(XYPlot plot) { 377 protected void addMarkers(XYPlot plot) {
377 for(Marker marker : domainMarkers) { 378 for(Marker marker : domainMarkers) {
378 plot.addDomainMarker(plot); 379 plot.addDomainMarker(marker);
379 } 380 }
380 } 381 }
381 382
382 383
383 /** 384 /**

http://dive4elements.wald.intevation.org