Package fr.soleil.comete.swt

Examples of fr.soleil.comete.swt.ImageViewer


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

        final ImageViewer theComponent = new ImageViewer(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(275, 480));

        int imageHeight = 1000;
        int imageWidth = 1200;
        double[] t2 = new double[imageHeight * imageWidth];
        for (int i = 0; i < t2.length; i++) {
            t2[i] = i * i;
        }

        // double[] t1 = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
        // theComponent.setFlatNumberMatrix(t1, 3, 5);
        // System.out.println(Arrays.toString(t2));
        theComponent.setFlatNumberMatrix(t2, imageWidth, imageHeight);

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

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

TOP

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

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.