import java.awt.geom.Line2D;
import java.awt.geom.Path2D;


/**
 * Eraser Tool
 *
 * @author Richard Stover.
 *         Created Apr 13, 2008.
 */
public class Eraser implements Tools {
	
	private Path2D path;

	/**
	 * creates the Eraser
	 *
	 * @param x
	 * @param y
	 */
	public Eraser(int x, int y) {
		Line2D line = new Line2D.Double(x,y,x,y);
		this.path = new Path2D.Double(line);
	}

	/**
	 * draws the eraser
	 * 
	 * @param x 
	 * @param y 
	 * @return Line drawn with Brush in Path2D
	 */
	public Path2D draw(int x, int y) {
		this.path.lineTo(x,y);
		return this.path;
	}

}
