// Now we match the data set and the list
int len = pcbxcurves.getItemCount();
for (int i=0; i<len; ++i) {
CbxEntry e = (CbxEntry)pcbxcurves.getItemAt(i);
dst.setName(i,e.name);
CategoryItemRenderer renderer = plot.getRenderer();
DataSource ds = (DataSource)mapperSources.get(i);
if ((e.source==null) && (ds!=null)) ds.removeListener(BarChartShape.this);
mapperSources.set(i,e.source);
if (e.source!=null) e.source.addListener(BarChartShape.this);
ColorMapper cm = (ColorMapper)mappers.get(i);
if ((e.mapper==null) && (cm!=null)) cm.removeListener(BarChartShape.this);
mappers.set(i,e.mapper);
if (e.mapper!=null) e.mapper.addListener(BarChartShape.this);
if ((e.mapper!=null) && (e.source!=null)) {
e.mapper.setDefaultPaint(e.color);
renderer.setSeriesPaint(i,e.mapper.getPaint(e.source));
}
else renderer.setSeriesPaint(i,e.color);
}
plot.setOrientation(hSeriesOrientation.isSelected() ? PlotOrientation.HORIZONTAL : PlotOrientation.VERTICAL);