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

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


    public void fittedY1DataChanged(String attributeName, boolean userEvent) {
        dataFittedName = attributeName;
        dataFittedAxis = IChartViewer.Y1;
        initAttributeList();
        if (listener != null && userEvent) {
            PlotProperties plotProperties = chartViewer.getDataViewPlotProperties(dataFittedName);
            if (plotProperties != null) {
                plotProperties.setAxisChoice(IChartViewer.Y1);
                listener.plotPropertiesChange(dataFittedName, plotProperties);
            }
        }
    }
View Full Code Here


                        // Only notified for spectrum and not for Image
                        if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, viewIdWithoutDevice)) {
                            // System.out.println("dataViewId=" +
                            // viewIdWithoutDevice);
                            if (viewId != null && !viewId.isEmpty()) {
                                PlotProperties prop = chartViewer.getDataViewPlotProperties(viewId);
                                // System.out.println("prop=" + viewId + prop);
                                if (prop != null) {
                                    listener.plotPropertiesChange(viewIdWithoutDevice, prop);
                                }
                            }
View Full Code Here

        if (!Arrays.toString(y1SensorsDataList).equalsIgnoreCase(Arrays.toString(newSensorList))) {
            this.y1SensorsDataList = newSensorList;
            initAttributeList();
            // notify listener that the axis changes
            if (listener != null && userEvent) {
                PlotProperties plotProperties = null;
                String dataViewId = null;
                for (String datawId : y1SensorsDataList) {
                    dataViewId = scanServerDeviceName + "/" + datawId;
                    plotProperties = chartViewer.getDataViewPlotProperties(dataViewId);
                    if (plotProperties != null) {
                        plotProperties.setAxisChoice(IChartViewer.Y1);
                        listener.plotPropertiesChange(datawId, plotProperties);
                    }
                }
            }
        }
View Full Code Here

        if (!Arrays.toString(y2SensorsDataList).equalsIgnoreCase(Arrays.toString(newSensorList))) {
            this.y2SensorsDataList = newSensorList;
            initAttributeList();
            // notify listener that the axis changes
            if (listener != null && userEvent) {
                PlotProperties plotProperties = null;
                String dataViewId = null;
                for (String datawId : y2SensorsDataList) {
                    dataViewId = scanServerDeviceName + "/" + datawId;
                    plotProperties = chartViewer.getDataViewPlotProperties(dataViewId);
                    if (plotProperties != null) {
                        plotProperties.setAxisChoice(IChartViewer.Y2);
                        listener.plotPropertiesChange(datawId, plotProperties);
                    }
                }
            }
        }
View Full Code Here

    public void fittedY2DataChanged(String attributeName, boolean userEvent) {
        dataFittedName = attributeName;
        dataFittedAxis = IChartViewer.Y2;
        initAttributeList();
        if (listener != null && userEvent) {
            PlotProperties plotProperties = chartViewer.getDataViewPlotProperties(dataFittedName);
            if (plotProperties != null) {
                plotProperties.setAxisChoice(IChartViewer.Y2);
                listener.plotPropertiesChange(dataFittedName, plotProperties);
            }
        }
    }
View Full Code Here

    public void fittedY1DataChanged(String attributeName, boolean userEvent) {
        dataFittedName = attributeName;
        dataFittedAxis = IChartViewer.Y1;
        initAttributeList();
        if (listener != null && userEvent) {
            PlotProperties plotProperties = chartViewer.getDataViewPlotProperties(dataFittedName);
            if (plotProperties != null) {
                plotProperties.setAxisChoice(IChartViewer.Y1);
                listener.plotPropertiesChange(dataFittedName, plotProperties);
            }
        }
    }
View Full Code Here

            // chartViewer.setAxisLabelFormat(IChartViewer.DECINT_FORMAT, IChartViewer.X);
        }

        if (listener != null && actuatorName != null && !actuatorName.isEmpty() && userEvent) {
            String newName = actuatorName.replaceFirst(scanServerDeviceName, "");
            PlotProperties plotProperties = chartViewer.getDataViewPlotProperties(newName);
            if (plotProperties == null) {
                plotProperties = new PlotProperties();
            }
            plotProperties.setAxisChoice(IChartViewer.X);
            listener.plotPropertiesChange(newName, plotProperties);
        }

        initAttributeList();
    }
View Full Code Here

    public void fittedY2DataChanged(String attributeName, boolean userEvent) {
        dataFittedName = attributeName;
        dataFittedAxis = IChartViewer.Y2;
        initAttributeList();
        if (listener != null && userEvent) {
            PlotProperties plotProperties = chartViewer.getDataViewPlotProperties(dataFittedName);
            if (plotProperties != null) {
                plotProperties.setAxisChoice(IChartViewer.Y2);
                listener.plotPropertiesChange(dataFittedName, plotProperties);
            }
        }
    }
View Full Code Here

                    chartViewer.setDataViewMarkerSize(newdataViewId, 5);

                    String plotKey = newdataViewId.replaceFirst(scanServerDeviceName + "/", "");
                    if (plotPropertiesMap != null && plotPropertiesMap.containsKey(plotKey)
                            && plotPropertiesMap.get(plotKey) != null) {
                        PlotProperties plotProperties = plotPropertiesMap.get(plotKey);
                        setDataViewConfiguration(newdataViewId, plotProperties);
                        // chartViewer.setDataViewPlotProperties(newdataViewId, plotProperties);
                    }
                    else {
                        chartViewer.setDataViewCometeColor(newdataViewId, dataViewColor);
                        chartViewer.setDataViewMarkerStyle(newdataViewId, IChartViewer.MARKER_DOT);
                        chartViewer.setDataViewMarkerCometeColor(newdataViewId, dataViewColor);
                        chartViewer.setDataViewMarkerSize(newdataViewId, 5);
                    }
                    chartViewer.setDataViewAxis(newdataViewId, axis);
                    PlotProperties plotProperties = chartViewer
                            .getDataViewPlotProperties(newdataViewId);
                    if (plotProperties != null) {
                        plotProperties.setAxisChoice(axis);
                    }

                    chartViewer.setDataViewDisplayName(newdataViewId, newDisplayName);
                    dataViewIdList.add(newdataViewId);
                }
View Full Code Here

            // IChartViewer.X);
        }

        if (listener != null && actuatorName != null && !actuatorName.isEmpty() && userEvent) {
            String newName = actuatorName.replaceFirst(scanServerDeviceName, "");
            PlotProperties plotProperties = chartViewer.getDataViewPlotProperties(newName);
            if (plotProperties == null) {
                plotProperties = new PlotProperties();
            }
            plotProperties.setAxisChoice(IChartViewer.X);
            listener.plotPropertiesChange(newName, plotProperties);
        }

        initAttributeList();
    }
View Full Code Here

TOP

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

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.