
package arrayDisplay;

import java.awt.Graphics;

/**
 * Describes a "Paintable" object. Paintable objects should draw a
 * picture of themselves on the Graphics object.
 * 
 * @author David Matuszek
 */
public interface Paintable {
    /**
     * Paints on the Graphics object; any painting should stay within
     * the rectangle described (though this is not enforced).
     * 
     * @param g Where the painting is to occur.
     * @param x The left boundary of the painting.
     * @param y The top boundary of the painting.
     * @param width (x + width) is the right boundary of the painting.
     * @param height (y + height) is the lower boundary of the painting.
     */
    public void paint(Graphics g, int x, int y, int width, int height);
}
