sortedRegions.addAll(urf.entrySet());
}
seriesCount += sortedRegions.size();
Iterator<RectF> it = tableModel.getIterator(widgetRect, seriesCount);
RectF cellRect;
<BUG>for(SeriesAndFormatter<XYSeries, XYSeriesFormatter> sfPair : plot.getSeriesRegistry().asList()) {
cellRect = it.next();</BUG>
XYSeriesFormatter format = sfPair.getFormatter();
drawSeriesLegendCell(canvas, plot.getRenderer(sfPair.getFormatter().getRendererClass()),
format, cellRect, sfPair.getSeries().getTitle());

sortedRegions.addAll(urf.entrySet());
}
seriesCount += sortedRegions.size();
Iterator<RectF> it = tableModel.getIterator(widgetRect, seriesCount);
RectF cellRect;
for(SeriesAndFormatter<XYSeries, XYSeriesFormatter> sfPair : plot.getSeriesRegistry()) {
cellRect = it.next();
XYSeriesFormatter format = sfPair.getFormatter();
drawSeriesLegendCell(canvas, plot.getRenderer(sfPair.getFormatter().getRendererClass()),
format, cellRect, sfPair.getSeries().getTitle());
