use of org.jfree.experimental.chart.swt.ChartComposite in project SIMVA-SoS by SESoS.
the class SWTBarChartDemo1 method main.
/**
* Starting point for the demonstration application.
*
* @param args ignored.
*/
public static void main(String[] args) {
JFreeChart chart = createChart(createDataset());
Display display = new Display();
Shell shell = new Shell(display);
shell.setSize(600, 300);
shell.setLayout(new FillLayout());
shell.setText("Test for jfreechart running with SWT");
ChartComposite frame = new ChartComposite(shell, SWT.NONE, chart, true);
frame.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
}
use of org.jfree.experimental.chart.swt.ChartComposite in project SIMVA-SoS by SESoS.
the class SWTMultipleAxisDemo1 method main.
/**
* Starting point for the demonstration application.
*
* @param args ignored.
*/
public static void main(String[] args) {
final JFreeChart chart = createChart();
final Display display = new Display();
Shell shell = new Shell(display);
shell.setSize(600, 300);
shell.setLayout(new FillLayout());
shell.setText("Test for jfreechart running with SWT");
ChartComposite frame = new ChartComposite(shell, SWT.NONE, chart, true);
frame.setDisplayToolTips(false);
frame.setHorizontalAxisTrace(true);
frame.setVerticalAxisTrace(true);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
}
use of org.jfree.experimental.chart.swt.ChartComposite in project SIMVA-SoS by SESoS.
the class SWTPieChartDemo1 method main.
/**
* Starting point for the demonstration application.
*
* @param args ignored.
*/
public static void main(String[] args) {
JFreeChart chart = createChart(createDataset());
Display display = new Display();
Shell shell = new Shell(display);
shell.setSize(600, 400);
shell.setLayout(new FillLayout());
shell.setText("Test for jfreechart running with SWT");
final ChartComposite frame = new ChartComposite(shell, SWT.NONE, chart, true);
// frame.setDisplayToolTips(false);
frame.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
}
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 StatusMonitorViewPart method createPlotTableUnit.
/**
* Creates the plot table unit
*
* @param composite The composite to contains plot table unit
* @param unitNumber the number of unit
*/
private void createPlotTableUnit(Composite composite, int unitNumber) {
final JFreeChart chart = createChart(unitNumber);
ChartComposite frame = new ChartComposite(composite, SWT.NONE, chart, false, true, false, true, true);
GridData gdFrame = new GridData(SWT.FILL, SWT.FILL, true, true);
frame.setLayoutData(gdFrame);
frame.setLayout(new FillLayout());
createValueDisplay(composite, unitNumber);
}
Aggregations