Package fr.soleil.salsa.entity

Examples of fr.soleil.salsa.entity.IDisplay


     *
     * @param display the display to set
     */
    @Override
    public void setDisplay(IDisplay display) {
        IDisplay oldValue = baseBean.getDisplay();
        baseBean.setDisplay(display);
        firePropertyChange("display", oldValue, display);
    }
View Full Code Here


     *
     * @param display the display to set
     */
    @Override
    public void setDisplay(IDisplay display) {
        IDisplay oldValue = baseBean.getDisplay();
        baseBean.setDisplay(display);
        firePropertyChange("display", oldValue, display);
    }
View Full Code Here

        if (newconfig != null) {
            // System.out.println(newconfig.getFullPath());
            // System.out.println(newconfig.isModified());
            attributeNameList.clear();

            IDisplay display = getDisplay(newconfig);

            if (display != null) {
                // long begin2 = System.currentTimeMillis();
                List<DisplayAxis> axisList = display.getAxisList();
                Iterator<DisplayAxis> iteratorAxis = axisList.listIterator();
                List<ISensor> sensorList = newconfig.getSensorsList();
                List<IActuator> actuatorList = newconfig.getActuatorList();

                // long end2 = System.currentTimeMillis();
                // System.out.println("Display Extraction= " + (end2 - begin2));

                // long begin3 = System.currentTimeMillis();
                if (sensorList != null) {
                    initSavedAxis(sensorList, iteratorAxis, true);
                }

                // long end3 = System.currentTimeMillis();
                // System.out.println("Init Saved Axis sensor= " + (end3 - begin3));

                // long begin4 = System.currentTimeMillis();
                if (actuatorList != null) {
                    initSavedAxis(actuatorList, iteratorAxis, false);
                }
                // long end4 = System.currentTimeMillis();
                // System.out.println("Init Saved Axis actuator= " + (end4 - begin4));

                // Check if it is a timebase
                if (display.isTimeBase()) {
                    super.setActuatorName(CurrentScanDataModel.SENSORS_TIMESTAMPS);
                }
            }
            // refreshGUI();
            config = newconfig;
View Full Code Here

            // System.out.println("axisMap=" + axisMap);
            if (axisMap.isEmpty()) {
                return;
            }

            IDisplay display = getDisplay(config);
            if (display == null) {
                return;
            }

            List<DisplayAxis> axisList = new ArrayList<DisplayAxis>();
            synchronized (attributeNameList) {
                Iterator<String> attributeIterator = attributeNameList.listIterator();
                String attributeName = null;
                String axis = null;
                while (attributeIterator.hasNext()) {
                    attributeName = attributeIterator.next();
                    if (axisMap.containsKey(attributeName.toLowerCase())) {
                        axis = axisMap.get(attributeName.toLowerCase());
                        axisList.add(getDisplayAxis(axis));
                        // System.out.println("buildAxisList=" + attributeName + " -> " + axis);
                    }
                }
                // Check if it is a time base
                String actualActuatorName = super.getActuatorName();
                // System.out.println("actualActuatorName=" + actualActuatorName);
                if (actualActuatorName != null
                        && actualActuatorName.equals(CurrentScanDataModel.SENSORS_TIMESTAMPS)) {
                    display.setTimeBase(true);
                }
                else {
                    display.setTimeBase(false);
                }
                display.setAxisList(axisList);
            }

            if (config != null) {
                IScanAddOns scanAddOns = config.getScanAddOn();
                if (scanAddOns != null) {
View Full Code Here

        }

        config = aconfig;
        attributeNameList.clear();

        IDisplay display = getDisplay();

        if (display == null) {
            return;
        }

        List<DisplayAxis> axisList = display.getAxisList();
        Iterator<DisplayAxis> iteratorAxis = axisList.listIterator();

        List<ISensor> sensorList = aconfig.getSensorsList();
        if (sensorList == null) {
            return;
        }

        initSavedAxis(sensorList, iteratorAxis);

        IDimension dimension = config.getDimensionX();
        List<IActuator> actuatorList = null;
        if (dimension != null) {
            actuatorList = dimension.getActuatorsList();
            initSavedAxis(actuatorList, iteratorAxis);
        }

        if (config instanceof IConfig2D) {
            dimension = ((IConfig2D) config).getDimensionY();
            if (dimension != null) {
                actuatorList = dimension.getActuatorsList();
                initSavedAxis(actuatorList, iteratorAxis);
            }
        }

        // Check if it is a timebase
        if (display.isTimeBase()) {
            super.setActuatorName(CurrentScanDataModel.SENSORS_TIMESTAMPS);
        }
        else {
            super.setActuatorName("");
        }
View Full Code Here

        // System.out.println("axisMap=" + axisMap);
        if (axisMap.isEmpty()) {
            return;
        }

        IDisplay display = getDisplay();
        if (display == null) {
            return;
        }

        List<DisplayAxis> axisList = new ArrayList<DisplayAxis>();
        synchronized (attributeNameList) {
            Iterator<String> attributeIterator = attributeNameList.listIterator();
            String attributeName = null;
            String axis = null;
            while (attributeIterator.hasNext()) {
                attributeName = attributeIterator.next();
                if (axisMap.containsKey(attributeName.toLowerCase())) {
                    axis = axisMap.get(attributeName.toLowerCase());
                    axisList.add(getDisplayAxis(axis));
                    // System.out.println("buildAxisList=" + attributeName + " -> " + axis);
                }
            }
            // Check if it is a time base
            String actualActuatorName = super.getActuatorName();
            if (actualActuatorName != null
                    && actualActuatorName.equals(CurrentScanDataModel.SENSORS_TIMESTAMPS)) {
                display.setTimeBase(true);
            }
            else {
                display.setTimeBase(false);
            }
            display.setAxisList(axisList);
        }

        if (config != null) {
            IScanAddOns scanAddOns = config.getScanAddOn();
            if (scanAddOns != null) {
View Full Code Here

        }

        config = aconfig;
        attributeNameList.clear();

        IDisplay display = getDisplay();

        if (display == null) {
            return;
        }

        List<DisplayAxis> axisList = display.getAxisList();
        Iterator<DisplayAxis> iteratorAxis = axisList.listIterator();

        List<ISensor> sensorList = aconfig.getSensorsList();
        if (sensorList == null) {
            return;
View Full Code Here

        // System.out.println("axisMap=" + axisMap);
        if (axisMap.isEmpty()) {
            return;
        }

        IDisplay display = getDisplay();
        if (display == null) {
            return;
        }

        List<DisplayAxis> axisList = new ArrayList<DisplayAxis>();
        Iterator<String> attributeIterator = attributeNameList.listIterator();
        String attributeName = null;
        String axis = null;
        while (attributeIterator.hasNext()) {
            attributeName = attributeIterator.next();
            if (axisMap.containsKey(attributeName.toLowerCase())) {
                axis = axisMap.get(attributeName.toLowerCase());
                axisList.add(getDisplayAxis(axis));
                // System.out.println("buildAxisList=" + attributeName + " -> " + axis);
            }
        }
        display.setAxisList(axisList);

        if (config != null) {
            IScanAddOns scanAddOns = config.getScanAddOn();
            if (scanAddOns != null) {
                scanAddOns.setDisplay(display);
View Full Code Here

     * The display manager parameters.
     * @param display the display to set
     */
    @Override
    public void setDisplay(IDisplay display) {
        IDisplay oldValue = baseBean.getDisplay();
        baseBean.setDisplay(display);
        firePropertyChange("display", oldValue, display);
    }   
View Full Code Here

        if (newconfig != null) {
            // System.out.println(newconfig.getFullPath());
            // System.out.println(newconfig.isModified());
            attributeNameList.clear();

            IDisplay display = getDisplay(newconfig);

            if (display != null) {
                // long begin2 = System.currentTimeMillis();
                List<DisplayAxis> axisList = display.getAxisList();
                Iterator<DisplayAxis> iteratorAxis = axisList.listIterator();
                List<ISensor> sensorList = newconfig.getSensorsList();
                List<IActuator> actuatorList = newconfig.getActuatorList();

                // long end2 = System.currentTimeMillis();
                // System.out.println("Display Extraction= " + (end2 - begin2));

                // long begin3 = System.currentTimeMillis();
                if (sensorList != null) {
                    initSavedAxis(sensorList, iteratorAxis);
                }

                // long end3 = System.currentTimeMillis();
                // System.out.println("Init Saved Axis sensor= " + (end3 - begin3));

                // long begin4 = System.currentTimeMillis();
                if (actuatorList != null) {
                    initSavedAxis(actuatorList, iteratorAxis);
                }
                // long end4 = System.currentTimeMillis();
                // System.out.println("Init Saved Axis actuator= " + (end4 - begin4));

                // Check if it is a timebase
                if (display.isTimeBase()) {
                    super.setActuatorName(CurrentScanDataModel.SENSORS_TIMESTAMPS);
                }
            }
            // refreshGUI();
            config = newconfig;
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.IDisplay

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.