view gnv-artifacts/src/main/java/de/intevation/gnv/math/AttributedXYColumns.java @ 434:0eed5749fd63

Implemented the raster interpolation for the 'Profilschnitt'. gnv-artifacts/trunk@482 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 23 Dec 2009 15:28:40 +0000
parents 828df3ddb758
children f5a041000357
line wrap: on
line source
package de.intevation.gnv.math;

import java.util.Map;
import java.util.HashMap;
import java.util.List;

import java.io.Serializable;

/**
 *  @author Ingo Weinzierl
 *  @author Sascha L. Teichmann
 */
public class AttributedXYColumns
implements   Serializable
{
    protected List<? extends XYColumn> columns;
    protected Map                      attributes;

    public AttributedXYColumns() {
    }

    public AttributedXYColumns(List<? extends XYColumn> columns) {
        this(columns, null);
    }

    public AttributedXYColumns(List<? extends XYColumn> columns, Map attributes) {
        this.columns    = columns;
        this.attributes = attributes;
    }

    public Object getAttribute(Object key) {
        return attributes.get(key);
    }

    public void setAttribute(Object key, Object value) {
        if (attributes == null) {
            attributes = new HashMap();
        }

        attributes.put(key, value);
    }

    public List<? extends XYColumn> getXYColumns() {
        return columns;
    }

    public void setXYColumns(List<? extends XYColumn> columns) {
        this.columns = columns;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

http://dive4elements.wald.intevation.org