comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalProfileChart.java @ 327:22a6493e8460

New options in chart template: visibility of lines and points in charts and point's size. gnv-artifacts/trunk@393 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 02 Dec 2009 10:50:12 +0000
parents 63f8b3fb7d9a
children e37930705daa
comparison
equal deleted inserted replaced
326:37847d724fc9 327:22a6493e8460
33 Collection parameters, 33 Collection parameters,
34 Collection measurements, 34 Collection measurements,
35 Collection dates, 35 Collection dates,
36 Collection result, 36 Collection result,
37 Collection timeGaps, 37 Collection timeGaps,
38 Locale locale 38 Locale locale,
39 boolean linesVisible,
40 boolean shapesVisible
39 ) { 41 ) {
40 this.labels = labels; 42 this.labels = labels;
41 this.theme = theme; 43 this.theme = theme;
42 this.parameters = parameters; 44 this.parameters = parameters;
43 this.measurements = measurements; 45 this.measurements = measurements;
44 this.dates = dates; 46 this.dates = dates;
45 this.resultSet = result; 47 this.resultSet = result;
46 this.timeGaps = timeGaps; 48 this.timeGaps = timeGaps;
47 this.locale = locale; 49 this.locale = locale;
48 this.PLOT_ORIENTATION = PlotOrientation.HORIZONTAL; 50 this.PLOT_ORIENTATION = PlotOrientation.HORIZONTAL;
51 this.linesVisible = linesVisible;
52 this.shapesVisible = shapesVisible;
49 } 53 }
50 54
51 55
52 protected void initData() { 56 protected void initData() {
53 log.debug("init data for VerticalProfileChart"); 57 log.debug("init data for VerticalProfileChart");
73 ) { 77 ) {
74 log.debug("prepare data/plot for next dataset"); 78 log.debug("prepare data/plot for next dataset");
75 79
76 if(series != null) { 80 if(series != null) {
77 addSeries(series, idx); 81 addSeries(series, idx);
78 prepareAxis(((String)series.getKey()), idx++); 82 prepareAxis(((String)series.getKey()), idx);
83 adjustRenderer(idx++, linesVisible, shapesVisible);
79 } 84 }
80 85
81 // prepare variables for next plot 86 // prepare variables for next plot
82 breakPoint1 = row.getString("GROUP1"); 87 breakPoint1 = row.getString("GROUP1");
83 breakPoint2 = row.getString("GROUP2"); 88 breakPoint2 = row.getString("GROUP2");
96 addValue(row, series); 101 addValue(row, series);
97 } 102 }
98 103
99 addSeries(series, idx); 104 addSeries(series, idx);
100 105
101 if (series != null) 106 if (series != null) {
102 prepareAxis(((String)series.getKey()), idx++); 107 prepareAxis(((String)series.getKey()), idx);
108 adjustRenderer(idx++, linesVisible, shapesVisible);
109 }
103 } 110 }
104 111
105 112
106 protected void addValue(Result row, Series series) { 113 protected void addValue(Result row, Series series) {
107 // TODO look for gaps between two values 114 // TODO look for gaps between two values

http://dive4elements.wald.intevation.org