import objectdraw.*;


/*
 *  A piece of laundry of an arbitrary shape.
 */
public interface LaundryItem {

    /*
     *  Move the laundry relative to its current position.
     *    xOffset - distance to move horizontally
     *    yOffset - distance to move vertically
     */
    public void move(double xOffset, double yOffset);

    /*
     *  Move the laundry to a specific position.
     *    x - x coordinate
     *    y - y coordinate
     */
    public void moveTo(double x, double y);

    /*
     * Remove the laundry from the display
     */
    public void removeFromCanvas();

    /*
     *  Return true if the point is in the laundry.
     *    pt - the point to test for containment
     */
    public boolean contains(Location pt);

    /*
     * Return the sum of the redness, blueness, and greenness 
     * of the item.
     */
    public int colorValue();
}
