// CS134 demo
// Scribbles on screen starting when user
// presses mouse button
import objectdraw.*;
import java.awt.*;
public class Scribble extends WindowController {
private Location nextLineStarts;
public void onMousePress( Location point ) {
nextLineStarts = point;
}
public void onMouseDrag( Location point ) {
new Line( nextLineStarts, point, canvas );
nextLineStarts = point;
}
}