Examples of PlotProperties


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

        refreshModified();
    }

    @Override
    public void removePlotProperties(String viewId) {
        PlotProperties oldValue = getPlotProperties(viewId);
        baseBean.removePlotProperties(viewId);
        firePropertyChange(IConfigListener.PLOT_PROP, oldValue, null);
        refreshModified();
    }
View Full Code Here

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

                    Map<String, PlotProperties> propertiesMap = uiPreferences
                            .getPlotPropertiesMap();
                    // Parse plot properties to set the axis
                    Set<String> plotKeySet = propertiesMap.keySet();
                    PlotProperties plotProp = null;
                    Vector<String> y2SensorDataVector = new Vector<String>();
                    Vector<String> y1SensorDataVector = new Vector<String>();
                    Vector<String> y2DataVector = new Vector<String>();
                    Vector<String> y1DataVector = new Vector<String>();
                    Vector<String> zDataVector = new Vector<String>();
                    Vector<String> noneDataVector = new Vector<String>();
                    String simpleActuatorName = null;
                    String y1dataFitterAttribute = null;
                    String y2dataFitterAttribute = null;
                    String attributeName = null;
                    String deviceName = null;
                    for (String dataViewId : plotKeySet) {
                        if (dataViewId.indexOf("/") > -1) {
                            attributeName = TangoDeviceHelper.getEntityName(dataViewId);
                            deviceName = TangoDeviceHelper.getDeviceName(dataViewId);
                        }
                        else {
                            attributeName = dataViewId;
                            deviceName = scanServerName;
                        }

                        plotProp = propertiesMap.get(dataViewId);
                        int axis = plotProp.getAxisChoice();
                        switch (axis) {
                            case IChartViewer.Y1:
                                CurrentScanDataModel.addAttributeAxisMap(attributeName, Axis.Y1);
                                break;
                            case IChartViewer.Y2:
View Full Code Here

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

    }

    private void addPlotProperties(String dataViewId, int axis) {
        if (uiPreferences != null && dataViewId != null && !dataViewId.isEmpty()) {
            Map<String, PlotProperties> propertiesMap = uiPreferences.getPlotPropertiesMap();
            PlotProperties properties = propertiesMap.get(dataViewId.toLowerCase());
            if (properties == null) {
                properties = new PlotProperties();
                CometeColor newColor = CometeColorUtil.getNewColor();
                properties.getMarker().setStyle(IChartViewer.MARKER_BOX);
                properties.getMarker().setColor(newColor);
                properties.getCurve().setColor(newColor);
            }
            properties.getMarker().setLegendVisible(true);
            // Axis = 3 for Z
            properties.setAxisChoice(axis);
            uiPreferences.addPlotPropertiesMap(dataViewId.toLowerCase(), properties);
        }
    }
View Full Code Here

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

                if (!list2.containsKey(key1)) {
                    listEquals = false;
                    break;
                }
                else {
                    PlotProperties obj1 = list1.get(key1);
                    PlotProperties obj2 = list2.get(key1);
                    if (!plotPropertiesEquals(obj1, obj2)) {
                        listEquals = false;
                        break;
                    }
                }
View Full Code Here

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

        }
    }

    @Override
    public PlotProperties getPlotProperties(String viewId) {
        PlotProperties result = null;
        if (viewId != null) {
            viewId = viewId.toLowerCase().trim();
            result = plotPropertiesMap.get(viewId);
        }
        return result;
View Full Code Here

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

        if (getView() != null && viewId != null) {
            try {
                configSemaphore.acquire();
                if (config instanceof ISpectrumConfig<?>) {
                    ISpectrumConfig<?> spectrumConfig = (ISpectrumConfig<?>) config;
                    PlotProperties properties = getView().getPlotProperties(viewId);
                    spectrumConfig.setPlotProperties(viewId, properties);
                }
                configSemaphore.release();
            }
            catch (InterruptedException e) {
View Full Code Here

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

        if ((getView() != null) && (viewId != null)) {
            try {
                configSemaphore.acquire();
                if (config instanceof ISpectrumConfig<?>) {
                    ISpectrumConfig<?> spectrumConfig = (ISpectrumConfig<?>) config;
                    PlotProperties properties = getView().getPlotProperties(viewId);
                    spectrumConfig.setPlotProperties(viewId, properties);
                }
                configSemaphore.release();
            }
            catch (InterruptedException e) {
View Full Code Here

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

        return baseBean.getPlotProperties(viewId);
    }

    @Override
    public void setPlotProperties(String viewId, PlotProperties plotProperties) {
        PlotProperties oldValue = getPlotProperties(viewId);
        baseBean.setPlotProperties(viewId, plotProperties);
        firePropertyChange("plotProperties:" + viewId, oldValue, plotProperties);
    }
View Full Code Here

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

        firePropertyChange("plotProperties:" + viewId, oldValue, plotProperties);
    }

    @Override
    public void removePlotProperties(String viewId) {
        PlotProperties oldValue = getPlotProperties(viewId);
        baseBean.removePlotProperties(viewId);
        firePropertyChange("plotProperties:" + viewId, oldValue, null);
    }
View Full Code Here

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

        if ((getView() != null) && (viewId != null)) {
            try {
                configSemaphore.acquire();
                if (config instanceof ISpectrumConfig<?>) {
                    ISpectrumConfig<?> spectrumConfig = (ISpectrumConfig<?>) config;
                    PlotProperties properties = getView().getPlotProperties(viewId);
                    spectrumConfig.setPlotProperties(viewId, properties);
                }
                configSemaphore.release();
            }
            catch (InterruptedException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.