comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/AttributedPoint2ds.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
children 823e4f808418
comparison
equal deleted inserted replaced
479:d47b478e662b 480:211cad2fb5ba
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 /**
10 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
11 */
12 public class AttributedPoint2ds
13 implements Serializable
14 {
15 protected List<? extends Point2d> points;
16 protected Map attributes;
17
18 public AttributedPoint2ds() {
19 }
20
21 public AttributedPoint2ds(List<? extends Point2d> points) {
22 this.points = points;
23 }
24
25 public Object getAttribute(Object key) {
26 return attributes != null
27 ? attributes.get(key)
28 : null;
29 }
30
31 public void setAttribute(Object key, Object value) {
32 if (attributes == null) {
33 attributes = new HashMap();
34 }
35 attributes.put(key, value);
36 }
37
38 public List<? extends Point2d> getPoints() {
39 return points;
40 }
41
42 public void setPoints(List<? extends Point2d> points) {
43 this.points = points;
44 }
45 }
46 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org