-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start #286 - Improve Pie- and Doughnut Chart Labels and Layout
- Loading branch information
1 parent
fd3b0a3
commit c0be9ec
Showing
2 changed files
with
395 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
....examples/src/org/eclipse/swtchart/extensions/examples/charts/ComplexPieChartExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
Oops, something went wrong.