Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/AttributedXYColumns.java @ 480:211cad2fb5ba
Rebased "Horizonalschnitte" to own state class to break from the not
well fitting TimeSeriesOutputState.
gnv-artifacts/trunk@552 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 17 Jan 2010 12:22:56 +0000 |
parents | f5a041000357 |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
479:d47b478e662b | 480:211cad2fb5ba |
---|---|
7 import java.io.Serializable; | 7 import java.io.Serializable; |
8 | 8 |
9 import de.intevation.gnv.jfreechart.PolygonDataset; | 9 import de.intevation.gnv.jfreechart.PolygonDataset; |
10 | 10 |
11 /** | 11 /** |
12 * @author Ingo Weinzierl | 12 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) |
13 * @author Sascha L. Teichmann | 13 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) |
14 */ | 14 */ |
15 public class AttributedXYColumns | 15 public class AttributedXYColumns |
16 implements Serializable | 16 implements Serializable |
17 { | 17 { |
18 protected List<? extends XYColumn> columns; | 18 protected List<? extends XYColumn> columns; |
31 this.columns = columns; | 31 this.columns = columns; |
32 this.attributes = attributes; | 32 this.attributes = attributes; |
33 } | 33 } |
34 | 34 |
35 public Object getAttribute(Object key) { | 35 public Object getAttribute(Object key) { |
36 return attributes.get(key); | 36 return attributes != null |
37 ? attributes.get(key) | |
38 : null; | |
37 } | 39 } |
38 | 40 |
39 public void setAttribute(Object key, Object value) { | 41 public void setAttribute(Object key, Object value) { |
40 if (attributes == null) { | 42 if (attributes == null) { |
41 attributes = new HashMap(); | 43 attributes = new HashMap(); |
42 } | 44 } |
43 | |
44 attributes.put(key, value); | 45 attributes.put(key, value); |
45 } | 46 } |
46 | 47 |
47 public List<? extends XYColumn> getXYColumns() { | 48 public List<? extends XYColumn> getXYColumns() { |
48 return columns; | 49 return columns; |