package cnp.ew.displayer;
import java.awt.*;
import cnp.ew.lightweight.*;

abstract public class CpAbstractOrientedValueDisplayer extends CpAbstractValueDisplayer
implements CpOrientableValueDisplayable
{
    int orientation=ORIENT_LEFT_TO_RIGHT;

    public void setOrientation(int newOrientation)
    {
        orientation = newOrientation;
    }

    public int getOrientation()
    {
        return orientation;
    }

    abstract public void paintIn(CpLightweightComponent c, Graphics g, int x, int y, int w, int h);
    abstract public Dimension preferredSize(CpLightweightComponent c);
}

