comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/HorizontalCrossProfileChart.java @ 1119:7c4f81f74c47

merged gnv-artifacts
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:00 +0200
parents f953c9a559d8
children
comparison
equal deleted inserted replaced
1027:fca4b5eb8d2f 1119:7c4f81f74c47
1 /*
2 * Copyright (c) 2010 by Intevation GmbH
3 *
4 * This program is free software under the LGPL (>=v2.1)
5 * Read the file LGPL.txt coming with the software for details
6 * or visit http://www.gnu.org/licenses/ if it does not exist.
7 */
8
9 package de.intevation.gnv.chart;
10
11 import de.intevation.gnv.geobackend.base.Result;
12
13 import java.util.Collection;
14 import java.util.Locale;
15
16 import org.apache.log4j.Logger;
17
18 import org.jfree.chart.ChartTheme;
19
20 import org.jfree.data.general.Series;
21
22 /**
23 * Implementation to create a special type of horizontal profile charts.
24 *
25 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
26 */
27 public class HorizontalCrossProfileChart
28 extends HorizontalProfileChart
29 {
30 /**
31 * Logger used for logging with log4j.
32 */
33 private static Logger log = Logger.getLogger(HorizontalCrossProfileChart.class);
34
35 /**
36 * Constructor to create HorizontalCrossProfileChart objects.
37 *
38 * @param labels Labels used to be displayed in title, subtitle and so on.
39 * @param theme ChartTheme used to adjust the rendering of this chart.
40 * @param parameters Collection containing a bunch of parameters.
41 * @param measurements Collection containing a bunch of measurements.
42 * @param dates Collection containing a bunch of date objects.
43 * @param result Collection containing a bunch of <code>Result</code>
44 * objects which contain the actual data items to be displayed.
45 * @param timeGaps Collection with timegap definitions.
46 * @param locale Locale used to specify the format of labels, numbers, ...
47 * @param linesVisible Render lines between data points if true, otherwise
48 * not.
49 * @param shapesVisible Render vertices as points if true, otherwise not.
50 */
51 public HorizontalCrossProfileChart(
52 ChartLabels labels,
53 ChartTheme theme,
54 Collection parameters,
55 Collection measurements,
56 Collection dates,
57 Collection result,
58 Collection timeGaps,
59 Locale locale,
60 boolean linesVisible,
61 boolean shapesVisible
62 ) {
63 super(
64 labels,
65 theme,
66 parameters,
67 measurements,
68 dates,
69 result,
70 timeGaps,
71 locale,
72 linesVisible,
73 shapesVisible
74 );
75 }
76
77
78 /**
79 * Method for gap detection. Nothing is done here, because in this type of
80 * chart no gap detection takes place.
81 *
82 * @see de.intevation.gnv.chart.HorizontalProfileChart#gapDetection(Result[],
83 * Series, int, int)
84 */
85 @Override
86 protected void gapDetection(
87 Result[] results,
88 Series series,
89 int startPos,
90 int endPos
91 ) {
92 // nothing to do here, gap detection is done in interpolation
93 }
94 }
95 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org