sascha@480: package de.intevation.gnv.math;
sascha@480:
sascha@484: import com.vividsolutions.jts.geom.MultiLineString;
sascha@484: import com.vividsolutions.jts.geom.MultiPolygon;
sascha@484:
sascha@484: import de.intevation.gnv.utils.Pair;
sascha@484:
sascha@484: import java.io.Serializable;
sascha@484:
sascha@480: import java.util.HashMap;
sascha@480: import java.util.List;
sascha@484: import java.util.Map;
sascha@480:
sascha@480: /**
sascha@780: * @author Sascha L. Teichmann
sascha@480: */
sascha@480: public class AttributedPoint2ds
sascha@480: implements Serializable
sascha@480: {
sascha@484: protected List extends Point2d> points;
sascha@484: protected Map attributes;
sascha@484: protected AreaInterpolation interpolation;
sascha@484: protected List> lineStrings;
sascha@484: protected Map polygons;
sascha@480:
sascha@480: public AttributedPoint2ds() {
sascha@480: }
sascha@480:
sascha@480: public AttributedPoint2ds(List extends Point2d> 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 extends Point2d> getPoints() {
sascha@480: return points;
sascha@480: }
sascha@480:
sascha@480: public void setPoints(List extends Point2d> points) {
sascha@480: this.points = points;
sascha@480: }
sascha@484:
sascha@484: public void setInterpolation(AreaInterpolation interpolation) {
sascha@484: this.interpolation = interpolation;
sascha@484: }
sascha@484:
sascha@484: public AreaInterpolation getInterpolation() {
sascha@484: return interpolation;
sascha@484: }
sascha@484:
sascha@484: public void setPolygons(Map polygons) {
sascha@484: this.polygons = polygons;
sascha@484: }
sascha@484:
sascha@484: public Map getPolygons() {
sascha@484: return polygons;
sascha@484: }
sascha@484:
sascha@484: public void setLineStrings(
sascha@484: List> lineStrings
sascha@484: ) {
sascha@484: this.lineStrings = lineStrings;
sascha@484: }
sascha@484:
sascha@484: public List> getLineStrings() {
sascha@484: return lineStrings;
sascha@484: }
sascha@480: }
sascha@480: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :