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);
}
Aggregations