@Override public String generateLabel(CategoryDataset dataset,int series){
  ParamChecks.nullNotPermitted(dataset,"dataset");
  String label=MessageFormat.format(this.formatPattern,createItemArray(dataset,series));
  return label;
}

@ Override public String generateLabel ( CategoryDataset dataset , int series ) { ParamChecks . nullNotPermitted ( dataset , "dataset" ) ; String label = MessageFormat . format ( this . formatPattern , createItemArray ( dataset , series ) ) ; return label ; }
generates a label for the specified series .
