package cnp.ew.richtext;

import cnp.ew.util.*;

public class CpRun
{
    public int offset;
    public int length;
    public Object object;

    public CpRun(int newOffset, int newLength, Object newObject)
    {
        offset = newOffset;
        length = newLength;
        object = newObject;
    }

    public String toString()
    {
       // System.out.println("Printing a CpRUn, offset = " + offset);
        return "<" + offset + ", " + length + ">";
    }

    public CpRun getCopy()
    {
        return new CpRun(offset, length, ((CpCopyable)object).getCopy());
    }
}

