public class MakeBox extends WindowController{

	public void onMousePress(Location point){
		new FilledRect(85,85,30,20,canvas);
	}
	
	public void onMouseRelease(Location point){
		canvas.clear();
	}
}



import objectdraw.*;
import java.awt.*;

public class MakeBox extends WindowController{

	protected void onMouseDrag(Location point){
		new FilledRect(point,10,10,canvas);
	}   
}



public class Scribble extends WindowController{
	Location nextLineStarts;
	
	public void onMousePress(Location point)
	{
		nextLineStarts = point;
	}

	public void onMouseDrag(Location point)
	{
		new Line(nextLineStarts, point, canvas);
		nextLineStarts = point;
	} 
}