Search in sources :

Example 1 with TalendChartComposite

use of org.talend.dataprofiler.chart.util.TalendChartComposite in project tdq-studio-se by Talend.

the class TOPChartService method createTalendChartComposite.

@Override
public Object createTalendChartComposite(Object parentComponent, int style, Object chart, boolean useBuffer) {
    ChartComposite cc = new TalendChartComposite((Composite) parentComponent, style, (JFreeChart) chart, useBuffer);
    GridData gd = new GridData();
    gd.widthHint = CHART_STANDARD_WIDHT;
    gd.heightHint = CHART_STANDARD_HEIGHT;
    cc.setLayoutData(gd);
    return cc;
}
Also used : TalendChartComposite(org.talend.dataprofiler.chart.util.TalendChartComposite) ChartComposite(org.jfree.experimental.chart.swt.ChartComposite) TalendChartComposite(org.talend.dataprofiler.chart.util.TalendChartComposite) GridData(org.eclipse.swt.layout.GridData)

Aggregations

GridData (org.eclipse.swt.layout.GridData)1 ChartComposite (org.jfree.experimental.chart.swt.ChartComposite)1 TalendChartComposite (org.talend.dataprofiler.chart.util.TalendChartComposite)1