Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalProfileChart.java @ 310:45625b5cd6d4
Added timegap definitions to charts. Adapted constructors and constructor calls.
gnv-artifacts/trunk@368 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 24 Nov 2009 19:14:58 +0000 |
parents | 3ea030aafe65 |
children | 63f8b3fb7d9a |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalProfileChart.java Tue Nov 24 15:59:51 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalProfileChart.java Tue Nov 24 19:14:58 2009 +0000 @@ -30,16 +30,18 @@ ChartTheme theme, Collection parameters, Collection measurements, + Collection dates, Collection result, - Collection dates, + Collection timeGaps, Locale locale ) { this.labels = labels; this.theme = theme; this.parameters = parameters; this.measurements = measurements; + this.dates = dates; this.resultSet = result; - this.dates = dates; + this.timeGaps = timeGaps; this.locale = locale; this.PLOT_ORIENTATION = PlotOrientation.HORIZONTAL; } @@ -93,7 +95,9 @@ } addSeries(series, idx); - prepareAxis(((String)series.getKey()), idx++); + + if (series != null) + prepareAxis(((String)series.getKey()), idx++); }