Package fr.soleil.comete.definition.widget

Examples of fr.soleil.comete.definition.widget.IImageViewer


        return panel;
    }

    private static IImageViewer createImageViewer() {

        IImageViewer viewer = new ImageViewer();

        ImageViewerBox imageBox = new ImageViewerBox();

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


    public static void main(String[] args) {

        IFrame frame = new Frame();
        DataSourceProducerProvider.pushNewProducer(TangoRefreshingManager.class);

        IImageViewer image = createImageViewer();

        final JPanel f = initPanel(image);
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);
View Full Code Here

        return panel;
    }

    private static IImageViewer createImageViewer() {

        IImageViewer viewer = new ImageViewer();

        NumberMatrixBox imageBox = new NumberMatrixBox();

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

    // }

    public static void main(String[] args) {
        IFrame frame = new Frame();

        IImageViewer image = createImageViewer();

        final JPanel f = initPanel(image);
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);
View Full Code Here

        return panel;
    }

    private static IImageViewer createImageViewer() {

        IImageViewer viewer = new ImageViewer();
        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);
        imageBox.connectWidget(xConvertor, xkey);

        // 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

    }

    public static void main(String[] args) {
        IFrame frame = new Frame();

        IImageViewer image = createImageViewer();
        displayValues();

        final JPanel f = initPanel(image);
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
View Full Code Here

        super(parent, childStyle);
    }

    @Override
    protected IComponent initComponent(int childStyle) {
        IImageViewer imageViewer = CometeWidgetFactory.createImageViewer(this, childStyle);
        if (imageViewer instanceof fr.soleil.comete.swing.ImageViewer) {
            ((fr.soleil.comete.swing.ImageViewer) imageViewer).setApplicationId("SWT");
        }
        return imageViewer;
    }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.definition.widget.IImageViewer

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.