Package fr.soleil.comete.swt

Examples of fr.soleil.comete.swt.Chart


        GridData tableBooleanData = new GridData(200, 100);
        tableBooleanData.verticalAlignment = GridData.BEGINNING;
        tableBoolean.setLayoutData(tableBooleanData);

        // ChartViewer
        chartViewer = new Chart(parent, SWT.NONE);
        GridData chartData = new GridData();
        chartData.verticalAlignment = GridData.BEGINNING;
        chartData.minimumWidth = 600;
        chartData.minimumHeight = 400;
        chartData.horizontalSpan = 2;
View Full Code Here


        componentPanel.setLayoutData(componentGridData);

        // set a background to let user see limits of the component
        componentPanel.setBackground(new Color(Display.getCurrent(), 255, 175, 175));// PINK as in awt

        final Chart theComponent = new Chart(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(450, 450));

        Map<String, Object> data = new HashMap<String, Object>();
        // mixed x and y values
        // double[] t1 = new double[] { 1, 5, 2, 9, 3, 12, 4, 0, 5, 23, 6, 15, 7, 10, 8, 19 };
        // double[] t2 = new double[] { 1, 6, 2, -3, 3, 0, 4, 7, 5, 54, 6, 12, 7, 34, 8, 32, 9, 31, 10, 23 };
        // data.put("first", t1);
        // data.put("second", t2);
        theComponent.setData(data);

        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);

        GridData testPanelGridData = new GridData();
View Full Code Here

        // set a background to let user see limits of the component
        componentPanel.setBackground(new Color(Display.getCurrent(), 255, 175, 175));// PINK as in awt

        // the ChartPanel
        final Chart theComponent = new Chart(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(400, 400));

        // mixed x and y values
        Map<String, Object> data = new HashMap<String, Object>();
        // double[] t1 = new double[] { -1, 7, 0, -5, 1, 5, 2, 9, 3, 12, 4, -10, 5, 23, 6, 15, 7, 10, 8, 19 };
        // double[] t2 = new double[] { 1, 6, 2, -3, 3, 0, 4, 7, 5, 54, 6, 12, 7, 34, 8, 32, 9, 31, 10, 23 };
        // data.put("first", t1);
        // data.put("second", t2);
        theComponent.setData(data);

        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);

        GridData testPanelGridData = new GridData();
View Full Code Here

        GridData componentGridData = new GridData();
        componentGridData.verticalAlignment = SWT.BEGINNING;
        componentPanel.setLayoutData(componentGridData);

        final Chart theComponent = new Chart(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(450, 450));

        // mixed x and y values
        double[] t1 = new double[] { -1, 7, 0, -5, 1, 5, 2, 9, 3, 12, 4, -10, 5, 23, 6, 15, 7, 10, 8, 19 };
        double[] t2 = new double[] { 1, 6, 2, -3, 3, 0, 4, 7, 5, 54, 6, 12, 7, 34, 8, 32, 9, 31, 10, 23 };
        Map<String, Object> data = new HashMap<String, Object>();
        data.put("first", t1);
        data.put("second", t2);
        theComponent.setData(data);

        // ----------

        Group testPanelIComponent = IComponentTestPanel.getTestPanel(mainComposite, theComponent);
        Group testPanelIDataArrayTarget = IDataArrayTargetTestPanel.getTestPanel(mainComposite, theComponent);
View Full Code Here

TOP

Related Classes of fr.soleil.comete.swt.Chart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.