use of org.jfree.experimental.chart.swt.ChartComposite in project cubrid-manager by CUBRID.
the class WhiteChart method loadChart.
public void loadChart() {
ChartComposite frame;
if (groupName != null) {
final Group chartGroup = new Group(composite, SWT.RESIZE);
chartGroup.setText(groupName);
GridLayout chartGroupLayout = new GridLayout();
chartGroupLayout.marginHeight = 6;
chartGroupLayout.marginWidth = 6;
chartGroup.setLayout(chartGroupLayout);
chartGroup.setLayoutData(new GridData(GridData.FILL_BOTH));
frame = new ChartComposite(chartGroup, SWT.NONE, createChart(), false, false, false, false, false);
} else {
frame = new ChartComposite(composite, SWT.NONE, createChart(), false, false, false, false, false);
}
GridData gdFrame = new GridData(SWT.FILL, SWT.FILL, true, true);
frame.setLayoutData(gdFrame);
frame.setLayout(new FillLayout());
frame.setDomainZoomable(false);
frame.setRangeZoomable(false);
frame.addChartMouseListener(new ChartMouseListener() {
public void chartMouseMoved(ChartMouseEvent event) {
}
public void chartMouseClicked(ChartMouseEvent event) {
if (event.getTrigger().getButton() == 1) {
editor.openEditStatisticItemDialog();
}
}
});
}
use of org.jfree.experimental.chart.swt.ChartComposite in project cubrid-manager by CUBRID.
the class ReplicationMonitorViewPart method createPlotTableUnit.
/**
* Creates the plot table unit
*
* @param composite Composite
*/
private void createPlotTableUnit(Composite composite) {
final JFreeChart chart = createChart();
ChartComposite chartFrame = new ChartComposite(composite, SWT.NONE, chart, false, true, false, true, true);
GridData gdFrame = new GridData(SWT.FILL, SWT.FILL, true, true);
chartFrame.setLayoutData(gdFrame);
chartFrame.setLayout(new FillLayout());
}
use of org.jfree.experimental.chart.swt.ChartComposite in project cubrid-manager by CUBRID.
the class VolumeFolderInfoEditor method paintComp1.
/**
* paint the composite
*
*/
public void paintComp1() {
for (DbSpaceInfo dbSpaceInfo : dbSpaceList) {
JFreeChart chart = createChart(createDataset(dbSpaceInfo), dbSpaceInfo);
final ChartComposite frame = new ChartComposite(chartComp, SWT.NONE, chart, false, true, false, true, true);
GridData gdDescGroup = new GridData();
gdDescGroup.widthHint = 350;
gdDescGroup.heightHint = 250;
frame.setLayoutData(gdDescGroup);
}
}
use of org.jfree.experimental.chart.swt.ChartComposite in project cubrid-manager by CUBRID.
the class VolumeInformationEditor method paintComp.
/**
* paint composite
*
*/
public void paintComp() {
if (chartComp == null || chartComp.isDisposed()) {
return;
}
Control[] controls = chartComp.getChildren();
for (Control control : controls) {
control.dispose();
}
JFreeChart chart = createChart(createDataset());
final ChartComposite frame = new ChartComposite(chartComp, SWT.NONE, chart, false, true, false, true, true);
GridData gdDescGroup = new GridData(GridData.FILL_HORIZONTAL);
gdDescGroup.widthHint = 600;
gdDescGroup.heightHint = 400;
frame.setLayoutData(gdDescGroup);
}
use of org.jfree.experimental.chart.swt.ChartComposite in project cubrid-manager by CUBRID.
the class DatabaseStatusEditor method paintOnePie.
/**
*
* Paint the pie chart
*
* @param dbSpaceInfo the DbSpace information
*/
public void paintOnePie(DbSpaceInfo dbSpaceInfo) {
JFreeChart chart = createChart(createDataset(dbSpaceInfo), dbSpaceInfo);
final ChartComposite frame = new ChartComposite(chartComp, SWT.NONE, chart, false, true, false, true, true);
GridData gdDescGroup = new GridData(GridData.FILL_HORIZONTAL);
gdDescGroup.heightHint = 220;
frame.setLayoutData(gdDescGroup);
}
Aggregations