Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/AttributedXYColumns.java @ 540:80630520e25a
merged gnv-artifacts/0.4
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:49 +0200 |
parents | 211cad2fb5ba |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
415:9f4a0b990d27 | 540:80630520e25a |
---|---|
1 package de.intevation.gnv.math; | |
2 | |
3 import java.util.Map; | |
4 import java.util.HashMap; | |
5 import java.util.List; | |
6 | |
7 import java.io.Serializable; | |
8 | |
9 import de.intevation.gnv.jfreechart.PolygonDataset; | |
10 | |
11 /** | |
12 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) | |
13 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) | |
14 */ | |
15 public class AttributedXYColumns | |
16 implements Serializable | |
17 { | |
18 protected List<? extends XYColumn> columns; | |
19 protected Map attributes; | |
20 protected Interpolation3D interpolation; | |
21 protected PolygonDataset dataset; | |
22 | |
23 public AttributedXYColumns() { | |
24 } | |
25 | |
26 public AttributedXYColumns(List<? extends XYColumn> columns) { | |
27 this(columns, null); | |
28 } | |
29 | |
30 public AttributedXYColumns(List<? extends XYColumn> columns, Map attributes) { | |
31 this.columns = columns; | |
32 this.attributes = attributes; | |
33 } | |
34 | |
35 public Object getAttribute(Object key) { | |
36 return attributes != null | |
37 ? attributes.get(key) | |
38 : null; | |
39 } | |
40 | |
41 public void setAttribute(Object key, Object value) { | |
42 if (attributes == null) { | |
43 attributes = new HashMap(); | |
44 } | |
45 attributes.put(key, value); | |
46 } | |
47 | |
48 public List<? extends XYColumn> getXYColumns() { | |
49 return columns; | |
50 } | |
51 | |
52 public void setXYColumns(List<? extends XYColumn> columns) { | |
53 this.columns = columns; | |
54 } | |
55 | |
56 public void setInterpolation(Interpolation3D interpolation) { | |
57 this.interpolation = interpolation; | |
58 } | |
59 | |
60 public Interpolation3D getInterpolation() { | |
61 return interpolation; | |
62 } | |
63 | |
64 public void setPolygonDataset(PolygonDataset dataset) { | |
65 this.dataset = dataset; | |
66 } | |
67 | |
68 public PolygonDataset getPolygonDataset() { | |
69 return dataset; | |
70 } | |
71 } | |
72 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: |