sascha@480: package de.intevation.gnv.math; sascha@480: sascha@480: import java.util.Map; sascha@480: import java.util.HashMap; sascha@480: import java.util.List; sascha@480: sascha@480: import java.io.Serializable; sascha@480: sascha@480: /** sascha@480: * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) sascha@480: */ sascha@480: public class AttributedPoint2ds sascha@480: implements Serializable sascha@480: { sascha@480: protected List points; sascha@480: protected Map attributes; sascha@480: sascha@480: public AttributedPoint2ds() { sascha@480: } sascha@480: sascha@480: public AttributedPoint2ds(List points) { sascha@480: this.points = points; sascha@480: } sascha@480: sascha@480: public Object getAttribute(Object key) { sascha@480: return attributes != null sascha@480: ? attributes.get(key) sascha@480: : null; sascha@480: } sascha@480: sascha@480: public void setAttribute(Object key, Object value) { sascha@480: if (attributes == null) { sascha@480: attributes = new HashMap(); sascha@480: } sascha@480: attributes.put(key, value); sascha@480: } sascha@480: sascha@480: public List getPoints() { sascha@480: return points; sascha@480: } sascha@480: sascha@480: public void setPoints(List points) { sascha@480: this.points = points; sascha@480: } sascha@480: } sascha@480: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :