Examples of ArrayPositionConvertor


Examples of fr.soleil.comete.definition.util.ArrayPositionConvertor

        if (widget instanceof RotaryImageViewer) {
            setupRotaryImageViewer((RotaryImageViewer) widget);
        }else if (widget instanceof ImageViewer) {
            setupImageViewer((ImageViewer) widget);
        }
        xConvertor = new ArrayPositionConvertor();
        yConvertor = new ArrayPositionConvertor();
    }
View Full Code Here

Examples of fr.soleil.comete.definition.util.ArrayPositionConvertor

        double[] converted = new double[250];
        for (int i = 0; i < converted.length; i++) {
            double value = Math.random() * Math.pow(10, new Random().nextInt(5)) * (Math.random() > 0.5 ? 1 : -1);
            converted[i] = value;
        }
        ArrayPositionConvertor convertor = new ArrayPositionConvertor();
        convertor.setNumberArray(converted);
        return convertor;
    }
View Full Code Here

Examples of fr.soleil.comete.definition.util.ArrayPositionConvertor

        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);
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.