Skip to content

Commit

Permalink
Start #286 - Improve Pie- and Doughnut Chart Labels and Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
eselmeister committed Mar 11, 2022
1 parent fd3b0a3 commit c0be9ec
Show file tree
Hide file tree
Showing 2 changed files with 395 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*******************************************************************************
* Copyright (c) 2020, 2022 SWTChart project.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Himanshu Balasamanta - initial API and implementation
*******************************************************************************/
package org.eclipse.swtchart.extensions.examples.charts;

import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swtchart.extensions.examples.parts.ComplexPieChart;

public class ComplexPieChartExample {

public static void main(String args[]) {

Display display = new Display();
Shell shell = new Shell(display);
shell.setText("Complex PieChart");
shell.setSize(700, 600);
shell.setLayout(new FillLayout());
//
new ComplexPieChart(shell);
shell.open();
//
while(!shell.isDisposed()) {
if(!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}
}
Loading

0 comments on commit c0be9ec

Please sign in to comment.