Examples of ViewContentDisplayConfiguration


Examples of org.thechiselgroup.choosel.core.client.visualization.model.initialization.ViewContentDisplayConfiguration

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);
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.visualization.model.initialization.ViewContentDisplayConfiguration

        add(originalFactory);
    }

    @Inject
    public void map(MapViewContentDisplayFactory factory) {
        ViewContentDisplayConfiguration configuration = new ViewContentDisplayConfiguration(
                factory);

        configuration.setSlotResolver(
                Map.COLOR,
                new VisualItemStatusResolver(Colors.STEELBLUE_C.alpha(0.6),
                        StatusRule.fullOrPartial(Colors.YELLOW_C,
                                Subset.HIGHLIGHTED), StatusRule.fullOrPartial(
                                Colors.ORANGE_C, Subset.SELECTED)));
        configuration.setSlotResolver(Map.BORDER_COLOR, new FixedValueResolver(
                Colors.STEELBLUE_C, DataType.COLOR));

        // TODO fix z-index
        configuration.setSlotResolver(Map.Z_INDEX, new FixedValueResolver(1,
                DataType.NUMBER));
        configuration.setSlotResolver(Map.RADIUS, new FixedValueResolver(5,
                DataType.NUMBER));

        add(configuration);
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.visualization.model.initialization.ViewContentDisplayConfiguration

        add(configuration);
    }

    @Inject
    public void pieChart(PieChartViewContentDisplayFactory originalFactory) {
        ViewContentDisplayConfiguration configuration = new ViewContentDisplayConfiguration(
                originalFactory);

        configuration.setSlotResolver(
                PieChart.COLOR,
                new VisualItemStatusResolver(Colors.STEELBLUE_C, StatusRule
                        .fullOrPartial(Colors.ORANGE_C, Subset.SELECTED)));
        configuration.setSlotResolver(PieChart.BORDER_COLOR,
        // TODO use brighter() instead of alpha
                new FixedValueResolver(Colors.STEELBLUE_C.alpha(.4),
                        DataType.COLOR));

        configuration.setSlotResolver(PieChart.PARTIAL_VALUE,
                new SubsetDelegatingValueResolver(PieChart.VALUE,
                        Subset.HIGHLIGHTED));

        configuration.setSlotResolver(PieChart.PARTIAL_COLOR,
                new FixedValueResolver(Colors.YELLOW_C, DataType.COLOR));

        configuration.setSlotResolver(PieChart.PARTIAL_BORDER_COLOR,
                new FixedValueResolver(Colors.STEELBLUE_C, DataType.COLOR));

        viewContentDisplayConfigurations.add(configuration);
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.visualization.model.initialization.ViewContentDisplayConfiguration

        viewContentDisplayConfigurations.add(configuration);
    }

    @Inject
    public void scatterPlot(ScatterPlotViewContentDisplayFactory factory) {
        ViewContentDisplayConfiguration configuration = new ViewContentDisplayConfiguration(
                factory);

        configuration.setSlotResolver(ScatterPlot.SIZE, new FixedValueResolver(
                20, DataType.NUMBER));
        configuration.setSlotResolver(ScatterPlot.BORDER_COLOR,
                new FixedValueResolver(Colors.STEELBLUE_C, DataType.COLOR));
        configuration.setSlotResolver(
                ScatterPlot.COLOR,
                new VisualItemStatusResolver(Colors.STEELBLUE_C.alpha(0.6),
                        StatusRule.fullOrPartial(Colors.YELLOW_C,
                                Subset.HIGHLIGHTED), StatusRule.fullOrPartial(
                                Colors.ORANGE_C, Subset.SELECTED)));
        configuration.setSlotResolver(ScatterPlot.SHAPE,
                new FixedValueResolver("circle", DataType.SHAPE));

        add(configuration);
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.visualization.model.initialization.ViewContentDisplayConfiguration

        add(factory);
    }

    @Inject
    public void timeLine(TimeLineViewContentDisplayFactory factory) {
        ViewContentDisplayConfiguration configuration = new ViewContentDisplayConfiguration(
                factory);

        configuration.setSlotResolver(TimeLine.BORDER_COLOR,
                new FixedValueResolver(Colors.STEELBLUE_C, DataType.COLOR));
        configuration.setSlotResolver(
                TimeLine.COLOR,
                new VisualItemStatusResolver(Colors.STEELBLUE_C.alpha(0.6),
                        StatusRule.fullOrPartial(Colors.YELLOW_C,
                                Subset.HIGHLIGHTED), StatusRule.fullOrPartial(
                                Colors.ORANGE_C, Subset.SELECTED)));
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.visualization.model.initialization.ViewContentDisplayConfiguration

        return viewContentDisplayConfigurations.add(configuration);
    }

    protected void add(ViewContentDisplayFactory factory) {
        viewContentDisplayConfigurations
                .add(new ViewContentDisplayConfiguration(factory));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.