Search in sources :

Example 1 with SummaryStatisticsState

use of org.talend.dataprofiler.core.ui.editor.preview.model.states.SummaryStatisticsState in project tdq-studio-se by Talend.

the class DynamicBAWChartEventReceiver method refreshChart.

@Override
public void refreshChart() {
    Map<IndicatorUnit, String> indicators2ValueMap = converIndicatorListToMap();
    SummaryStatisticsState state = new SummaryStatisticsState(indicators, indicators2ValueMap);
    if (!isLastIndicator()) {
        state.setSupportDynamicChart(true);
    }
    state.setSqltype(Types.DOUBLE);
    Object chart = state.getChart();
    TOPChartUtils.getInstance().decorateChart(chart, false);
    if (BAWparentComposite != null) {
        TOPChartUtils.getInstance().refrechChart(BAWparentComposite, chart);
    }
    EventManager.getInstance().publish(chartComposite, EventEnum.DQ_DYNAMIC_REFRESH_DYNAMIC_CHART, null);
}
Also used : ColumnIndicatorUnit(org.talend.dataprofiler.core.ui.editor.preview.ColumnIndicatorUnit) IndicatorUnit(org.talend.dataprofiler.core.ui.editor.preview.IndicatorUnit) SummaryStatisticsState(org.talend.dataprofiler.core.ui.editor.preview.model.states.SummaryStatisticsState)

Aggregations

ColumnIndicatorUnit (org.talend.dataprofiler.core.ui.editor.preview.ColumnIndicatorUnit)1 IndicatorUnit (org.talend.dataprofiler.core.ui.editor.preview.IndicatorUnit)1 SummaryStatisticsState (org.talend.dataprofiler.core.ui.editor.preview.model.states.SummaryStatisticsState)1