-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WiP #419 - Properties Menu / InteractiveChart
- Loading branch information
1 parent
8b4c3e6
commit e13d9bc
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...ns.examples/src/org/eclipse/swtchart/extensions/examples/charts/InteractiveChartDemo.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,41 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 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: | ||
* Philip Wenig - menu demo extension | ||
*******************************************************************************/ | ||
package org.eclipse.swtchart.extensions.examples.charts; | ||
|
||
import org.eclipse.swt.SWT; | ||
import org.eclipse.swt.layout.FillLayout; | ||
import org.eclipse.swt.widgets.Display; | ||
import org.eclipse.swt.widgets.Shell; | ||
import org.eclipse.swtchart.extensions.charts.InteractiveChart; | ||
|
||
public class InteractiveChartDemo { | ||
|
||
public static void main(String args[]) { | ||
|
||
Display display = new Display(); | ||
Shell shell = new Shell(display); | ||
shell.setText("InteractiveChartDemo"); | ||
shell.setSize(500, 400); | ||
shell.setLayout(new FillLayout()); | ||
// | ||
new InteractiveChart(shell, SWT.NONE); | ||
shell.open(); | ||
// | ||
while(!shell.isDisposed()) { | ||
if(!display.readAndDispatch()) { | ||
display.sleep(); | ||
} | ||
} | ||
display.dispose(); | ||
} | ||
} |