public void setPoints ( Iterable < Point > points ) { if ( points == null ) throw new NullPointerException ( ) ; this . points . clear ( ) ; for ( Point p : points ) { this . points . add ( new Point ( p ) ) ; } repaint ( ) ; }
Sets the marked pixels .