code: public void addPoint(Point p) {
  		if (p == null) throw new NullPointerException();
  		points.add(new Point(p));
  		repaint();
  	}
docs: Adds a point to the list of pixels marked by this overlay.
  @param p a new point
  @throws NullPointerException if {@code p} is {@code null}