ingo@429: package de.intevation.gnv.math; ingo@429: sascha@779: import de.intevation.gnv.jfreechart.PolygonDataset; sascha@432: ingo@429: import java.io.Serializable; ingo@429: sascha@779: import java.util.HashMap; sascha@779: import java.util.List; sascha@779: import java.util.Map; sascha@446: sascha@433: /** sascha@780: * @author Ingo Weinzierl sascha@780: * @author Sascha L. Teichmann sascha@433: */ ingo@429: public class AttributedXYColumns ingo@429: implements Serializable ingo@429: { sascha@432: protected List columns; sascha@432: protected Map attributes; sascha@446: protected Interpolation3D interpolation; sascha@446: protected PolygonDataset dataset; ingo@429: ingo@429: public AttributedXYColumns() { ingo@429: } ingo@429: sascha@432: public AttributedXYColumns(List columns) { ingo@429: this(columns, null); ingo@429: } ingo@429: sascha@432: public AttributedXYColumns(List columns, Map attributes) { ingo@429: this.columns = columns; ingo@429: this.attributes = attributes; ingo@429: } ingo@429: ingo@429: public Object getAttribute(Object key) { sascha@480: return attributes != null sascha@480: ? attributes.get(key) sascha@480: : null; ingo@429: } ingo@429: ingo@429: public void setAttribute(Object key, Object value) { sascha@432: if (attributes == null) { ingo@429: attributes = new HashMap(); sascha@432: } ingo@429: attributes.put(key, value); ingo@429: } ingo@429: sascha@432: public List getXYColumns() { ingo@429: return columns; ingo@429: } ingo@429: sascha@432: public void setXYColumns(List columns) { ingo@429: this.columns = columns; ingo@429: } sascha@446: sascha@446: public void setInterpolation(Interpolation3D interpolation) { sascha@446: this.interpolation = interpolation; sascha@446: } sascha@446: sascha@446: public Interpolation3D getInterpolation() { sascha@446: return interpolation; sascha@446: } sascha@446: sascha@446: public void setPolygonDataset(PolygonDataset dataset) { sascha@446: this.dataset = dataset; sascha@446: } sascha@446: sascha@446: public PolygonDataset getPolygonDataset() { sascha@446: return dataset; sascha@446: } ingo@429: } sascha@798: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :