Package fr.soleil.comete.box.matrixbox

Examples of fr.soleil.comete.box.matrixbox.NumberMatrixBox.connectWidget()


        NumberMatrixBox numberMBox = new NumberMatrixBox();

        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "double_image_ro");

        numberMBox.connectWidget(table, key);

        return table;
    }

    // private static AbstractTable<?> createStringMatrix() {
View Full Code Here


        TangoKeyTool.registerAttribute(key2, "tango/tangotest/titan/long_image_ro");
        final ImageViewer viewer = new ImageViewer();
        viewer.setApplicationId(CometeUtils.generateIdForClass(ImageConnexionTest.class));
        final NumberMatrixBox box = new NumberMatrixBox();
        box.setCleanWidgetOnDisconnect(viewer, false);
        box.connectWidget(viewer, key1);
        final JCheckBox keySelectionBox = new JCheckBox("Use 1st key");
        keySelectionBox.setSelected(true);
        keySelectionBox.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
View Full Code Here

            public void actionPerformed(ActionEvent e) {
                SwingUtilities.invokeLater(new Runnable() {
                    @Override
                    public void run() {
                        box.disconnectWidgetFromAll(viewer);
                        box.connectWidget(viewer, keySelectionBox.isSelected() ? key1 : key2);
                    }
                });
            }
        });
        final JCheckBox cleanCheckBox = new JCheckBox("Clean on disconnect");
View Full Code Here

        NumberMatrixBox numberMBox = new NumberMatrixBox();

        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "double_image_ro");

        numberMBox.connectWidget(table, key);

        return table;
    }

    // private static AbstractTable<?> createStringMatrix() {
View Full Code Here

        if (simpleCase) {
            //CometeBox construction
            NumberMatrixBox numberMatrixBox = new NumberMatrixBox();

            numberMatrixBox.connectWidget(imageViewer, imageKey);
        } else {
            //Application id
            imageViewer.setApplicationId("ImageViewerBox_Viewer_" + applicationIdNumber);
            applicationIdNumber++;
View Full Code Here

        NumberMatrixBox imageBox = new NumberMatrixBox();

        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "double_image_ro");

        imageBox.connectWidget(viewer, key);

        return viewer;
    }

    // private static IImageViewer createImagePlayer() {
View Full Code Here

        viewer.setAlwaysFitMaxSize(true);
        NumberMatrixBox imageBox = new NumberMatrixBox();

        TangoKey imagekey = new TangoKey();
        TangoKeyTool.registerAttribute(imagekey, deviceName, imageName);
        imageBox.connectWidget(viewer, imagekey);

        // IMAGE ON X
        ArrayPositionConvertor xConvertor = new ArrayPositionConvertor();
        TangoKey xkey = new TangoKey();
        TangoKeyTool.registerAttribute(xkey, deviceName, xAttributeName);
View Full Code Here

        // IMAGE ON X
        ArrayPositionConvertor xConvertor = new ArrayPositionConvertor();
        TangoKey xkey = new TangoKey();
        TangoKeyTool.registerAttribute(xkey, deviceName, xAttributeName);
        imageBox.connectWidget(xConvertor, xkey);

        // SPECTRUM ON Y
        ArrayPositionConvertor yConvertor = new ArrayPositionConvertor();
        TangoKey ykey = new TangoKey();
        TangoKeyTool.registerAttribute(ykey, deviceName, yAttributeName);
View Full Code Here

        // SPECTRUM ON Y
        ArrayPositionConvertor yConvertor = new ArrayPositionConvertor();
        TangoKey ykey = new TangoKey();
        TangoKeyTool.registerAttribute(ykey, deviceName, yAttributeName);
        imageBox.connectWidget(yConvertor, ykey);

        viewer.setXAxisConvertor(xConvertor);
        viewer.setYAxisConvertor(yConvertor);

        return viewer;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.