protected String generateSectionLabel(PieDataset dataset,Comparable key){
  String result=null;
  if (dataset != null) {
    Object[] items=createItemArray(dataset,key);
    result=MessageFormat.format(this.labelFormat,items);
  }
  return result;
}

protected String generateSectionLabel ( PieDataset dataset , Comparable key ) { String result = null ; if ( dataset != null ) { Object [ ] items = createItemArray ( dataset , key ) ; result = MessageFormat . format ( this . labelFormat , items ) ; } return result ; }
generates a label for a pie section .
