private void recalculateMaxCounts(){
  for (int i=0; i < datasets.size(); ++i) {
    XYDatasetWithGroups dataset=datasets.get(i);
    maxCounts.set(i,calculateMaxCount(dataset));
  }
}

private void recalculateMaxCounts ( ) { for ( int i = 0 ; i < datasets . size ( ) ; ++ i ) { XYDatasetWithGroups dataset = datasets . get ( i ) ; maxCounts . set ( i , calculateMaxCount ( dataset ) ) ; } }
it iterates over the children datasets and updates the maximum item number of the most populous series in each dataset .
