Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/HorizontalCrossProfileChart.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 | e8a9e84a0328 |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
722:bb3ffe7d719e | 875:5e9efdda6894 |
---|---|
1 package de.intevation.gnv.chart; | |
2 | |
3 import de.intevation.gnv.geobackend.base.Result; | |
4 | |
5 import java.util.Collection; | |
6 import java.util.Locale; | |
7 | |
8 import org.apache.log4j.Logger; | |
9 | |
10 import org.jfree.chart.ChartTheme; | |
11 | |
12 import org.jfree.data.general.Series; | |
13 | |
14 /** | |
15 * Implementation to create a special type of horizontal profile charts. | |
16 * | |
17 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
18 */ | |
19 public class HorizontalCrossProfileChart | |
20 extends HorizontalProfileChart | |
21 { | |
22 /** | |
23 * Logger used for logging with log4j. | |
24 */ | |
25 private static Logger log = Logger.getLogger(HorizontalCrossProfileChart.class); | |
26 | |
27 /** | |
28 * Constructor to create HorizontalCrossProfileChart objects. | |
29 * | |
30 * @param labels Labels used to be displayed in title, subtitle and so on. | |
31 * @param theme ChartTheme used to adjust the rendering of this chart. | |
32 * @param parameters Collection containing a bunch of parameters. | |
33 * @param measurements Collection containing a bunch of measurements. | |
34 * @param dates Collection containing a bunch of date objects. | |
35 * @param result Collection containing a bunch of <code>Result</code> | |
36 * objects which contain the actual data items to be displayed. | |
37 * @param timeGaps Collection with timegap definitions. | |
38 * @param locale Locale used to specify the format of labels, numbers, ... | |
39 * @param linesVisible Render lines between data points if true, otherwise | |
40 * not. | |
41 * @param shapesVisible Render vertices as points if true, otherwise not. | |
42 */ | |
43 public HorizontalCrossProfileChart( | |
44 ChartLabels labels, | |
45 ChartTheme theme, | |
46 Collection parameters, | |
47 Collection measurements, | |
48 Collection dates, | |
49 Collection result, | |
50 Collection timeGaps, | |
51 Locale locale, | |
52 boolean linesVisible, | |
53 boolean shapesVisible | |
54 ) { | |
55 super( | |
56 labels, | |
57 theme, | |
58 parameters, | |
59 measurements, | |
60 dates, | |
61 result, | |
62 timeGaps, | |
63 locale, | |
64 linesVisible, | |
65 shapesVisible | |
66 ); | |
67 } | |
68 | |
69 | |
70 /** | |
71 * Method for gap detection. Nothing is done here, because in this type of | |
72 * chart no gap detection takes place. | |
73 * | |
74 * @see de.intevation.gnv.chart.HorizontalProfileChart#gapDetection(Result[], | |
75 * Series, int, int) | |
76 */ | |
77 @Override | |
78 protected void gapDetection( | |
79 Result[] results, | |
80 Series series, | |
81 int startPos, | |
82 int endPos | |
83 ) { | |
84 // nothing to do here, gap detection is done in interpolation | |
85 } | |
86 } | |
87 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |