Examples of PlotProperties


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

        if (uiPreferences != null) {
            if (zSensorsDataList != null && zSensorsDataList.length > 0) {
                Map<String, PlotProperties> propertiesMap = uiPreferences.getPlotPropertiesMap();
                for (String dataViewId : zSensorsDataList) {
                    if (dataViewId != null && !dataViewId.isEmpty()) {
                        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(3);
                        uiPreferences.addPlotPropertiesMap(dataViewId, properties);
                    }
                }
            }
        }
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.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.definition.widget.properties.PlotProperties

    @Override
    public void setPlotProperties(String viewId, PlotProperties plotProperties) {
        // System.out.println("setPlotProperties=" + viewId + " => "
        // + plotProperties.getCurve().getWidth());
        PlotProperties oldValue = getPlotProperties(viewId);

        if (!ComparatorUtil.plotPropertiesEquals(oldValue, plotProperties)) {
            // String oldProp = PlotPropertiesXmlManager.toXmlString(oldValue);
            // System.out.println("Old PlotProperties=" + oldProp);
            //
View Full Code Here

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

    }

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

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

    @Override
    public void setPlotProperties(String viewId, PlotProperties plotProperties) {
        // System.out.println("setPlotProperties=" + viewId + " => "
        // + plotProperties.getCurve().getWidth());
        PlotProperties oldValue = getPlotProperties(viewId);

        if (!ComparatorUtil.plotPropertiesEquals(oldValue, plotProperties)) {
            // String oldProp = PlotPropertiesXmlManager.toXmlString(oldValue);
            // System.out.println("Old PlotProperties=" + oldProp);
            //
View Full Code Here

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

    }

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

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

    public void removePlotProperties(String dataViewId) {
        // System.out.println("addPlotPropertiesMap= " + dataViewId + System.currentTimeMillis());
        // new Exception().printStackTrace();
        if (dataViewId != null && !dataViewId.isEmpty()) {
            PlotProperties properties = plotPropertiesMap.get(dataViewId.toLowerCase());
            if (properties == null) {
                properties = new PlotProperties();
            }
            properties.getMarker().setLegendVisible(true);
            properties.setAxisChoice(-1);
            addPlotPropertiesMap(dataViewId, properties);
        }
    }
View Full Code Here

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

    @Override
    public void setPlotProperties(String viewId, PlotProperties plotProperties) {
        // System.out.println("setPlotProperties=" + viewId + " => "
        // + plotProperties.getCurve().getWidth());
        PlotProperties oldValue = getPlotProperties(viewId);

        if (!ComparatorUtil.plotPropertiesEquals(oldValue, plotProperties)) {
            // String oldProp = PlotPropertiesXmlManager.toXmlString(oldValue);
            // System.out.println("Old PlotProperties=" + oldProp);
            //
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;
                    for (String dataViewId : plotKeySet) {
                        plotProp = propertiesMap.get(dataViewId);
                        int axis = plotProp.getAxisChoice();

                        if (dataFitterName != null && !dataFitterName.isEmpty()
                                && dataViewId.startsWith(dataFitterName)) {
                            switch (axis) {
                                case IChartViewer.Y1:
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.