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

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


      @Override
      public void actionPerformed(ActionEvent e) {
        try {
          String chartString = textArea2.getText();
          Node node = XMLUtils.getRootNodeFromFileContent(chartString);
          ChartProperties prop = ChartPropertiesXmlManager.loadChartProperties(node);
          chartViewer2.setChartProperties(prop);
        } catch (XMLWarning ex) {
          // TODO Auto-generated catch block
          ex.printStackTrace();
        }
View Full Code Here


        }

        if (!ignoreEvent) {
            ignoreEvent = true;
            IComponent source = event.getSource();
            ChartProperties prop2 = chartViewer2.getChartProperties();
            ChartProperties prop1 = chartViewer1.getChartProperties();

            if (source == chartViewer2) {
                chartViewer1.setChartProperties(prop2);
            } else if (source == chartViewer1) {
                chartViewer2.setChartProperties(prop1);
View Full Code Here

        y1Prop.setScaleMax(DEFAULT_Y_MAX_VALUE);
        y1Prop.setGridVisible(true);
        y1Prop.setSubGridVisible(true);
        y1Prop.setGridStyle(IChartViewer.STYLE_DOT);

        ChartProperties chartProp = new ChartProperties();
        chartProp.setXAxisProperties(xProp);
        chartProp.setY1AxisProperties(y1Prop);
        chartViewer.setChartProperties(chartProp);

        chartViewer.getChart().setPaintAxisFirst(false);

        return chartViewer;
View Full Code Here

        y1Prop.setScaleMax(DEFAULT_Y_MAX_VALUE);
        y1Prop.setGridVisible(true);
        y1Prop.setSubGridVisible(true);
        y1Prop.setGridStyle(IChartViewer.STYLE_DOT);

        ChartProperties chartProp = new ChartProperties();
        chartProp.setXAxisProperties(xProp);
        chartProp.setY1AxisProperties(y1Prop);
        chartViewer.setChartProperties(chartProp);

        chartViewer.getChart().setPaintAxisFirst(false);

        return chartViewer;
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

                break;

            case CONFIGURATION:
                String viewId = event.getViewId();
                if (viewId == null || viewId.isEmpty() || viewId.startsWith(IChartViewer.CHART_PROPERTY_ACTION_NAME)) {
                    ChartProperties newProperties = chartViewer.getChartProperties();
                    chartProperties = newProperties;
                    CurrentScanDataModel.setChartPropertyScan(scanServerDeviceName, newProperties);
                }
                break;
            default:
View Full Code Here

        }
    }

    private void updateChartInformations() {
        if (chartViewer != null) {
            ChartProperties prop = defaultChartProp;
            if (chartProperties != null) {
                prop = chartProperties;
            }

            chartViewer.removeChartViewerListener(this);
View Full Code Here

    private String getDataViewExtendedName(String original, int index) {
        return (original + "_" + index);
    }

    public ChartProperties getChartProperties() {
        ChartProperties currentChartProperties = null;
        if (chartViewer != null) {
            currentChartProperties = chartViewer.getChartProperties();
        }
        return currentChartProperties;
    }
View Full Code Here

                            // System.out.println("selection" + event.getSelectedIndex());
                            actuatorInput.setIndex(event.getSelectedIndex());
                            break;
                        case CONFIGURATION:
                            if (listener != null) {
                                ChartProperties newProperties = chartViewer.getChartProperties();
                                listener.chartPropertiesChange(newProperties);
                            }
                        default:
                            break;
                    }
View Full Code Here

                    // System.out.println("listener=" + listener);
                    if (listener != null) {
                        String viewId = event.getViewId();
                        if (viewId == null || viewId.isEmpty()
                                || viewId.startsWith(IChartViewer.CHART_PROPERTY_ACTION_NAME)) {
                            ChartProperties newProperties = chartViewer.getChartProperties();
                            listener.chartPropertiesChange(newProperties);
                        }
                        else {

                            // Remove IChartViewer.DATAVIEW_PROPERTY_ACTION_NAME bug 22744
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.