code: public void clearPoints() {
  		for (int i=1;i<list.size()-1;i++) {
  			list.remove(1);
  		}
  		
  		repaint(0);
  		fireUpdate();
  	}
docs: Remove all the control points from the gradient editor (this does
  not include start and end points)