public class ChooselExampleWorkbenchViewContentDisplaysConfigurationProvider
extends DefaultViewContentDisplaysConfigurationProvider {
@Inject
public void barChart(BarChartViewContentDisplayFactory originalFactory) {
ViewContentDisplayConfiguration configuration = new ViewContentDisplayConfiguration(
originalFactory);
configuration.setSlotResolver(
BarChart.BAR_COLOR,
new VisualItemStatusResolver(Colors.STEELBLUE_C, StatusRule
.fullOrPartial(Colors.ORANGE_C, Subset.SELECTED)));
configuration.setSlotResolver(BarChart.BAR_BORDER_COLOR,
new FixedValueResolver(Colors.STEELBLUE_C, DataType.COLOR));
configuration.setSlotResolver(BarChart.PARTIAL_BAR_LENGTH,
new SubsetDelegatingValueResolver(BarChart.BAR_LENGTH,
Subset.HIGHLIGHTED));
configuration.setSlotResolver(BarChart.PARTIAL_BAR_COLOR,
new FixedValueResolver(Colors.YELLOW_C, DataType.COLOR));
configuration.setSlotResolver(BarChart.PARTIAL_BAR_BORDER_COLOR,
new FixedValueResolver(Colors.STEELBLUE_C, DataType.COLOR));
add(configuration);
}