protected void addNeighbor ( Queue < ColorPoint > queue , int px , int py , int color , Feature component ) { if ( ! inBoundary ( px , py , component ) ) { return ; } if ( ! mask . isTouched ( px , py ) ) { queue . add ( new ColorPoint ( px , py , color ) ) ; } }
May have to be changed to let multiple touch