// AddPoint.java // Command to add a point to the drawing. // Written by Scot Drysdale to // use for VoronoiTool import java.awt.Point; public class AddPoint extends Command { // When the mouse is clicked, add a PointShape object to the drawing there public void executeClick(Point p, Drawing dwg) { dwg.add(new PointShape(p)); } }