public void clear(){
  Arrays.fill(ritems,0,rsize,null);
  Arrays.fill(pitems,0,psize,null);
  rsize=0;
  psize=0;
  psorted=false;
}

public void clear ( ) { Arrays . fill ( ritems , 0 , rsize , null ) ; Arrays . fill ( pitems , 0 , psize , null ) ; rsize = 0 ; psize = 0 ; psorted = false ; }
clear both rendering and picking queues .
