Package fr.soleil.comete.definition.widget.properties

Examples of fr.soleil.comete.definition.widget.properties.ImageProperties


                if (imagePropertiesMap != null && !imagePropertiesMap.isEmpty()) {
                    Element imagePropertiesElement = document.createElement("imageproperties");
                    root.appendChild(imagePropertiesElement);
                    Set<String> imageKeySet = imagePropertiesMap.keySet();
                    String imageXml = null;
                    ImageProperties prop = null;
                    for (String key : imageKeySet) {
                        prop = imagePropertiesMap.get(key);
                        if (prop != null) {
                            Element itemElement = document.createElement("item");
                            itemElement.setAttribute("key", key);
View Full Code Here


                if ((imagePropertiesMap != null) && !imagePropertiesMap.isEmpty()) {
                    Element imagePropertiesElement = document.createElement("imageproperties");
                    root.appendChild(imagePropertiesElement);
                    String key = null;
                    String imageXml = null;
                    ImageProperties prop = null;
                    for (Map.Entry<String, ImageProperties> entry : imagePropertiesMap.entrySet()) {
                        key = entry.getKey();
                        prop = entry.getValue();
                        if (prop != null) {
                            Element itemElement = document.createElement("item");
                            itemElement.setAttribute("key", key);
                            imageXml = ImagePropertiesXmlManager.toXmlString(prop);
                            itemElement.setTextContent(imageXml);
                            imagePropertiesElement.appendChild(itemElement);
                        }
                    }
                }

                Map<String, ChartProperties> chartPropertiesMap = UIPreferences.getInstance().getChartPropertiesMap();
                if ((chartPropertiesMap != null) && !chartPropertiesMap.isEmpty()) {
                    Element chartPropertiesElement = document.createElement("chartpropertiesmap");
                    root.appendChild(chartPropertiesElement);
                    String chartXml = null;
                    String key = null;
                    ChartProperties prop = null;
                    for (Map.Entry<String, ChartProperties> entry : chartPropertiesMap.entrySet()) {
                        key = entry.getKey();
                        prop = entry.getValue();
                        if (prop != null) {
                            Element itemElement = document.createElement("item");
                            itemElement.setAttribute("key", key);
                            chartXml = ChartPropertiesXmlManager.toXmlString(prop);
                            itemElement.setTextContent(chartXml);
                            chartPropertiesElement.appendChild(itemElement);
                        }
                    }
                }

                Map<String, ScanProperties> scanPropertiesMap = UIPreferences.getInstance()
                .getCurrentScanPropertiesMap();
                if ((scanPropertiesMap != null) && !scanPropertiesMap.isEmpty()) {
                    Element scanConfigElement = document.createElement("scanconfiglist");
                    root.appendChild(scanConfigElement);
                    ScanProperties prop = null;
                    String key = null;
                    String chartXml = null;
                    for (Map.Entry<String, ScanProperties> entry : scanPropertiesMap.entrySet()) {
                        key = entry.getKey();
                        prop = entry.getValue();
                        if (prop != null) {
                            Element itemElement = document.createElement("item");
                            itemElement.setAttribute("key", key);

                            if (prop.getChartProperties() != null) {
                                Element chartElement = document.createElement("chart");
                                chartXml = ChartPropertiesXmlManager.toXmlString(prop.getChartProperties());
                                chartElement.setTextContent(chartXml);
                                itemElement.appendChild(chartElement);
                            }

                            Element y1Element = createAxisElement(document, prop.getY1AttributeList(), "y1List");
                            if (y1Element != null) {
                                itemElement.appendChild(y1Element);
                            }

                            Element y2Element = createAxisElement(document, prop.getY2AttributeList(), "y2List");
                            if (y2Element != null) {
                                itemElement.appendChild(y2Element);
                            }

                            Element zElement = createAxisElement(document, prop.getZAttributeList(), "zList");
                            if (zElement != null) {
                                itemElement.appendChild(zElement);
                            }

                            String xAttribute = prop.getXAttribute();
                            if ((xAttribute != null) && !xAttribute.isEmpty()) {
                                Element xElement = document.createElement("xAttribute");
                                xElement.setAttribute("name", xAttribute);
                                itemElement.appendChild(xElement);
                            }
View Full Code Here

                if (imagePropertiesMap != null && !imagePropertiesMap.isEmpty()) {
                    Element imagePropertiesElement = document.createElement("imageproperties");
                    root.appendChild(imagePropertiesElement);
                    Set<String> imageKeySet = imagePropertiesMap.keySet();
                    String imageXml = null;
                    ImageProperties prop = null;
                    for (String key : imageKeySet) {
                        prop = imagePropertiesMap.get(key);
                        if (prop != null) {
                            Element itemElement = document.createElement("item");
                            itemElement.setAttribute("key", key);
View Full Code Here

                if (imagePropertiesMap != null && !imagePropertiesMap.isEmpty()) {
                    Element imagePropertiesElement = document.createElement("imageproperties");
                    root.appendChild(imagePropertiesElement);
                    String key = null;
                    String imageXml = null;
                    ImageProperties prop = null;
                    for (Map.Entry<String, ImageProperties> entry : imagePropertiesMap.entrySet()) {
                        key = entry.getKey();
                        prop = entry.getValue();
                        if (prop != null) {
                            Element itemElement = document.createElement("item");
                            itemElement.setAttribute("key", key);
                            imageXml = ImagePropertiesXmlManager.toXmlString(prop);
                            itemElement.setTextContent(imageXml);
                            imagePropertiesElement.appendChild(itemElement);
                        }
                    }
                }

                Map<String, ChartProperties> chartPropertiesMap = UIPreferences.getInstance().getChartPropertiesMap();
                if (chartPropertiesMap != null && !chartPropertiesMap.isEmpty()) {
                    Element chartPropertiesElement = document.createElement("chartpropertiesmap");
                    root.appendChild(chartPropertiesElement);
                    String chartXml = null;
                    String key = null;
                    ChartProperties prop = null;
                    for (Map.Entry<String, ChartProperties> entry : chartPropertiesMap.entrySet()) {
                        key = entry.getKey();
                        prop = entry.getValue();
                        if (prop != null) {
                            Element itemElement = document.createElement("item");
                            itemElement.setAttribute("key", key);
                            chartXml = ChartPropertiesXmlManager.toXmlString(prop);
                            itemElement.setTextContent(chartXml);
                            chartPropertiesElement.appendChild(itemElement);
                        }
                    }
                }

                Map<String, ScanProperties> scanPropertiesMap = UIPreferences.getInstance()
                        .getCurrentScanPropertiesMap();
                if (scanPropertiesMap != null && !scanPropertiesMap.isEmpty()) {
                    Element scanConfigElement = document.createElement("scanconfiglist");
                    root.appendChild(scanConfigElement);
                    ScanProperties prop = null;
                    String key = null;
                    String chartXml = null;
                    for (Map.Entry<String, ScanProperties> entry : scanPropertiesMap.entrySet()) {
                        key = entry.getKey();
                        prop = entry.getValue();
                        if (prop != null) {
                            Element itemElement = document.createElement("item");
                            itemElement.setAttribute("key", key);

                            if (prop.getChartProperties() != null) {
                                Element chartElement = document.createElement("chart");
                                chartXml = ChartPropertiesXmlManager.toXmlString(prop.getChartProperties());
                                chartElement.setTextContent(chartXml);
                                itemElement.appendChild(chartElement);
                            }

                            Element y1Element = createAxisElement(document, prop.getY1AttributeList(), "y1List");
                            if (y1Element != null) {
                                itemElement.appendChild(y1Element);
                            }

                            Element y2Element = createAxisElement(document, prop.getY2AttributeList(), "y2List");
                            if (y2Element != null) {
                                itemElement.appendChild(y2Element);
                            }

                            Element zElement = createAxisElement(document, prop.getZAttributeList(), "zList");
                            if (zElement != null) {
                                itemElement.appendChild(zElement);
                            }

                            String xAttribute = prop.getXAttribute();
                            if (xAttribute != null && !xAttribute.isEmpty()) {
                                Element xElement = document.createElement("xAttribute");
                                xElement.setAttribute("name", xAttribute);
                                itemElement.appendChild(xElement);
                            }
View Full Code Here

            public void actionPerformed(ActionEvent e) {
                String prop = textArea.getText();
                if (prop != null && !prop.isEmpty()) {
                    try {
                        Node node = XMLUtils.getRootNodeFromFileContent(prop);
                        ImageProperties properties = ImagePropertiesXmlManager.loadImageProperties(node);
                        imageViewer.setImageProperties(properties);
                    } catch (XMLWarning e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                    }
View Full Code Here

    }

    private void refreshImagePropertiesMap() {
        if (imageProp != null && !imageProp.isEmpty() && imageViewerMap != null && !imageViewerMap.isEmpty()) {
            Collection<ImageViewer> imageViewers = imageViewerMap.values();
            ImageProperties properties = null;
            for (ImageViewer imageViewer : imageViewers) {
                properties = imageProp.get(imageViewer.getImageName().toLowerCase());
                if (properties != null) {
                    imageViewer.setImageProperties(properties);
                }
View Full Code Here

            Iterator<String> imageViewerIterator = imageViewerKeys.iterator();
            TangoKey imageKey = null;
            ImageViewer imageViewer = null;
            String key = null;
            String label = null;
            ImageProperties property = null;
            // build TangoKey and register Key
            while (imageViewerIterator.hasNext()) {
                key = imageViewerIterator.next();
                imageViewer = imageViewerMap.get(key);
                imageKey = new TangoKey();
View Full Code Here

    }

    private void refreshImagePropertiesMap() {
        if (imageProp != null && !imageProp.isEmpty() && imageViewerMap != null && !imageViewerMap.isEmpty()) {
            Collection<ImageViewer> imageViewers = imageViewerMap.values();
            ImageProperties properties = null;
            for (ImageViewer imageViewer : imageViewers) {
                properties = imageProp.get(imageViewer.getImageName().toLowerCase());
                if (properties != null) {
                    imageViewer.setImageProperties(properties);
                }
View Full Code Here

                imageBox.connectWidget(imageViewer, imageKey);
                setRefreshingPeriod(imageKey);
                setxAttributeName(xAttributeName);
                setyAttributeName(xAttributeName);
                if (imageProp != null && label != null) {
                    final ImageProperties property = imageProp.get(label.toLowerCase());
                    if (property != null) {
                        imageViewer.setImageProperties(property);
                    }
                }
                imageBox.setSynchronTransmission(imageViewer, false);
View Full Code Here

    }

    private void refreshImagePropertiesMap() {
        if (imageProp != null && !imageProp.isEmpty() && imageViewerMap != null && !imageViewerMap.isEmpty()) {
            Collection<ImageViewer> imageViewers = imageViewerMap.values();
            ImageProperties properties = null;
            for (ImageViewer imageViewer : imageViewers) {
                properties = imageProp.get(imageViewer.getImageName().toLowerCase());
                if (properties != null) {
                    imageViewer.setImageProperties(properties);
                }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.definition.widget.properties.ImageProperties

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.