ImageMetadata meta = datum.getMetadata(true);
int rating = meta.getRating();
boolean selected = selection.isSelected(datum);
renderer.paint(g, image, label, tag, rating, rect, selected);
ImageGroup group = datum.getGroup();
if (group.isNonTrivial()) {
ImageGroupCountRenderer.paint(g, rect, datum);
}
}
g.setClip(clip);