return delegate.renderGroupResult(result.getSingleValueDistributionResult());
}
}
public JComponent renderGroupedResult(ValueDistributionResult result) {
final DCPanel panel = new DCPanel();
panel.setLayout(new VerticalLayout(0));
Set<ValueDistributionGroupResult> results = result.getGroupedValueDistributionResults();
for (final ValueDistributionGroupResult res : results) {
if (panel.getComponentCount() != 0) {
panel.add(Box.createVerticalStrut(10));
}
final Ref<JComponent> componentRef = new LazyRef<JComponent>() {
@Override
protected JComponent fetch() {
ValueDistributionResultSwingRendererGroupDelegate delegate = new ValueDistributionResultSwingRendererGroupDelegate(
res.getGroupName());
final JComponent renderedResult = delegate.renderGroupResult(res);
final DCPanel decoratedPanel = createDecoration(renderedResult);
return decoratedPanel;
}
};
final String label = "Value distribution for group '" + LabelUtils.getLabel(res.getGroupName()) + "'";