comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractChart.java @ 875:5e9efdda6894

merged gnv-artifacts/1.0
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:13:56 +0200
parents b1f5f2a8840f
children f953c9a559d8
comparison
equal deleted inserted replaced
722:bb3ffe7d719e 875:5e9efdda6894
1 package de.intevation.gnv.chart;
2
3 import java.util.Collection;
4 import java.util.Locale;
5
6 import org.jfree.chart.ChartTheme;
7 import org.jfree.chart.JFreeChart;
8
9 /**
10 * Abstract chart class to define the basic fields used for chart creation.
11 *
12 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
13 */
14 public abstract class AbstractChart
15 implements Chart
16 {
17 /**
18 * JFreeChart object. Created after {@link #generateChart()} is called.
19 */
20 protected JFreeChart chart;
21
22 /**
23 * Field storing the visibility of lines in the chart plot.
24 */
25 protected boolean linesVisible;
26
27 /**
28 * Field storing the visibility of points in the chart plot.
29 */
30 protected boolean shapesVisible;
31
32 /**
33 * Locale object used for i18n support.
34 */
35 protected Locale locale;
36
37 /**
38 * ChartLabels
39 */
40 protected ChartLabels labels;
41
42 /**
43 * ChartTheme
44 */
45 protected ChartTheme theme;
46
47 /**
48 * Collection which contains a bunch of parameters.
49 */
50 protected Collection parameters;
51
52 /**
53 * Collection which contains a bunch of measurements.
54 */
55 protected Collection measurements;
56
57 /**
58 * Collection which contains all data objects used to be displayed in the
59 * chart. It contains different series and different datasets which is not
60 * very elegant.
61 */
62 protected Collection resultSet;
63
64 /**
65 * Collection which contains a bunch of date objects.
66 */
67 protected Collection dates;
68
69 /**
70 * Collection which contains a bunch of time gap definitions used to
71 * detect gaps in timeseries charts.
72 */
73 protected Collection timeGaps;
74
75 /**
76 * Abstract method which needs to be implemented by concrete subclasses.
77 * This method triggers the JFreeChart creation process. After calling this
78 * method {@link #chart} should be a valid <code>JFreeChart</code> object.
79 */
80 public abstract JFreeChart generateChart();
81 }
82 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org