package cnp.ew.charts;

import cnp.ew.displayer.*;
import cnp.ew.util.*;

abstract public class CpAbstractChartBackdropDisplayer extends CpAbstractDisplayer
implements CpObserver
{
    CpValueAxisModel valueAxisModel;
    CpChartDataModel dataModel;


    public void setValueAxisModel(CpValueAxisModel newModel)
    {
        valueAxisModel = newModel;
        valueAxisModel.addObserver(this);
    }

    public void setChartDataModel(CpChartDataModel model)
    {
        dataModel = model;
        dataModel.addObserver(this);
    }

    /**
     * Answer the offset from the top of the graph that another
     * displayer should use to align itself visually with the
     * top of the graph
     */
    public int getTopAlignmentOffset()
    {
        return 0;
    }
    // see above...
    public int getRightAlignmentOffset()
    {
        return 0;
    }

    public void update(CpObservable o, int facet, Object arg)
    {
    }
}

