package cnp.ew.richtext;

import cnp.ew.util.*;

public class CpLine implements CpCopyable
{
    int width;
    int height;
    int descent;

    public Object getCopy()
    {
        CpLine copy = new CpLine();
        copy.setWidth(width);
        copy.setHeight(height);
        copy.setDescent(descent);
        return copy;
    }

    public int getWidth()
    {
        return width;
    }

    public void setWidth(int newWidth)
    {
        width = newWidth;
    }

    public int getHeight()
    {
        return height;
    }

    public void setHeight(int newHeight)
    {
        height = newHeight;
    }

    public int getDescent()
    {
        return descent;
    }

    public void setDescent(int newDescent)
    {
        descent = newDescent;
    }
}
