Search in sources :

Example 1 with FrequencyStatisticsState

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

the class FrequencyDynamicChartEventReceiver method refreshChart.

@Override
public void refreshChart() {
    List<IndicatorUnit> indicatorUnits = new ArrayList<IndicatorUnit>();
    indicatorUnits.add(new ColumnIndicatorUnit(IndicatorEnum.findIndicatorEnum(this.getIndicator().eClass()), this.getIndicator(), null));
    // indicators
    FrequencyStatisticsState state = new FrequencyStatisticsState(indicatorUnits);
    state.setSupportDynamicChart(true);
    Object chart = state.getChart();
    TOPChartUtils.getInstance().decorateChart(chart, false);
    if (this.parentChartComposite != null) {
        TOPChartUtils.getInstance().refrechChart(this.parentChartComposite, 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) ArrayList(java.util.ArrayList) FrequencyStatisticsState(org.talend.dataprofiler.core.ui.editor.preview.model.states.freq.FrequencyStatisticsState) ColumnIndicatorUnit(org.talend.dataprofiler.core.ui.editor.preview.ColumnIndicatorUnit)

Aggregations

ArrayList (java.util.ArrayList)1 ColumnIndicatorUnit (org.talend.dataprofiler.core.ui.editor.preview.ColumnIndicatorUnit)1 IndicatorUnit (org.talend.dataprofiler.core.ui.editor.preview.IndicatorUnit)1 FrequencyStatisticsState (org.talend.dataprofiler.core.ui.editor.preview.model.states.freq.FrequencyStatisticsState)1