Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/StatisticSet.java @ 253:07650fc6014c
Put a name to each Statistic group which is similar to the name of the
Series in the Charts. issue83
gnv-artifacts/trunk@326 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Thu, 12 Nov 2009 10:15:05 +0000 |
parents | |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
252:f1e7ddeef5bc | 253:07650fc6014c |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.statistics; | |
5 | |
6 import java.util.ArrayList; | |
7 import java.util.Collection; | |
8 | |
9 /** | |
10 * @author Tim Englich <tim.englich@intevation.de> | |
11 * | |
12 */ | |
13 public class StatisticSet { | |
14 | |
15 | |
16 private String name = null; | |
17 | |
18 private Collection<Statistic> statistics = new ArrayList<Statistic>(); | |
19 | |
20 /** | |
21 * Constructor | |
22 */ | |
23 public StatisticSet(String name) { | |
24 this.name = name; | |
25 } | |
26 | |
27 | |
28 public void addStatistic(Statistic statistic){ | |
29 this.statistics.add(statistic); | |
30 } | |
31 | |
32 public Collection<Statistic> getStatistics(){ | |
33 return this.statistics; | |
34 } | |
35 | |
36 public String getName(){ | |
37 return this.name; | |
38 } | |
39 | |
40 } |