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

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


     *
     * @param configId The configuration id
     * @return Some {@link ChartProperties}
     */
    private ChartProperties getChartPropertiesByIdAux(Integer configId) throws SQLException {
        ChartProperties result = null;
        if (configId != null) {
            String query = "SELECT data FROM chart_properties WHERE configid=" + configId;

            if (stmt != null) {
                ResultSet rs = stmt.executeQuery(query);
View Full Code Here


    }

    @Override
    public void setChartProperties(ChartProperties chartProperties) {

        ChartProperties oldValue = getChartProperties();
        // System.out.println("setChartProperties=" + chartProperties);
        if (!ComparatorUtil.chartPropertiesEquals(oldValue, chartProperties)) {
            baseBean.setChartProperties(chartProperties);
            firePropertyChange("chartProperties", oldValue, chartProperties);
            setModified(true);
View Full Code Here

                        }
                        bookmarks.appendChild(e);
                    }
                }

                ChartProperties chartProperties = uiPreferences.getChartProperties();
                if (chartProperties != null) {
                    Element chartPropertiesElement = document.createElement("chartproperties");
                    String chartXml = ChartPropertiesXmlManager.toXmlString(chartProperties);
                    // chartPropertiesElement.setNodeValue(chartXml);
                    chartPropertiesElement.setAttribute("value", chartXml);
View Full Code Here

    }

    @Override
    public void setChartProperties(ChartProperties chartProperties) {

        ChartProperties oldValue = getChartProperties();
        // System.out.println("setChartProperties=" + chartProperties);
        if (!ComparatorUtil.chartPropertiesEquals(oldValue, chartProperties)) {
            baseBean.setChartProperties(chartProperties);
            firePropertyChange("chartProperties", oldValue, chartProperties);
            setModified(true);
View Full Code Here

    }

    @Override
    public void setChartProperties(ChartProperties chartProperties) {

        ChartProperties oldValue = getChartProperties();
        // System.out.println("setChartProperties=" + chartProperties);
        if (!ComparatorUtil.chartPropertiesEquals(oldValue, chartProperties)) {
            baseBean.setChartProperties(chartProperties);
            firePropertyChange("chartProperties", oldValue, chartProperties);
            setModified(true);
View Full Code Here

     *
     * @param configId The configuration id
     * @return Some {@link ChartProperties}
     */
    private ChartProperties getChartPropertiesByIdAux(Integer configId) throws SQLException {
        ChartProperties result = null;
        if (configId != null) {
            String query = "SELECT data FROM chart_properties WHERE configid=" + configId;

            if (stmt != null) {
                ResultSet rs = stmt.executeQuery(query);
View Full Code Here

                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

        return baseBean.getChartProperties();
    }

    @Override
    public void setChartProperties(ChartProperties chartProperties) {
        ChartProperties oldValue = getChartProperties();
        if (!ObjectUtils.sameObject(oldValue, chartProperties)) {
            baseBean.setChartProperties(chartProperties);
            firePropertyChange("chartProperties", oldValue, getChartProperties());
        }
    }
View Full Code Here

    }

    @Override
    public void setChartProperties(ChartProperties chartProperties) {
        if (chartProperties == null) {
            chartProperties = new ChartProperties();
            chartProperties.setAutoHighlightOnLegend(true);
        }
        this.chartProperties = chartProperties;
    }
View Full Code Here

        return baseBean.getChartProperties();
    }

    @Override
    public void setChartProperties(ChartProperties chartProperties) {
        ChartProperties oldValue = getChartProperties();
        if (!ComparatorUtil.chartPropertiesEquals(oldValue, chartProperties)) {
            baseBean.setChartProperties(chartProperties);
            firePropertyChange(IConfigListener.CHART_PROP, oldValue, chartProperties);
        }
        refreshModified();
View Full Code Here

TOP

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

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.