ingo@429: package de.intevation.gnv.math; ingo@429: ingo@429: import java.util.Map; ingo@429: import java.util.HashMap; sascha@432: import java.util.List; sascha@432: ingo@429: import java.io.Serializable; ingo@429: sascha@433: /** sascha@433: * @author Ingo Weinzierl sascha@433: * @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; 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) { ingo@429: return attributes.get(key); 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: 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: } ingo@429: } sascha@432: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: