Package fr.soleil.comete.widget.properties

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


        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

        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

        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

        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

        }
    }

    @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

        }
    }

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

            List<String> displayableList = extractAvailableDeviceNames(true, deviceList);
            deviceList.clear();
            int size = Math.min(axisList.size(), displayableList.size());
            for (int i = 0; i < size; i++) {
                String viewId = displayableList.get(i);
                PlotProperties properties = config.getPlotProperties(viewId);
                if (properties == null) {
                    properties = new PlotProperties(CometeColorUtil.getNextColor());
                    properties.getCurve().setName(viewId);
                }
                else {
                    properties = properties.clone();
                }
                int axis = convertDisplayAxisToAxis(axisList.get(i));
                if (axis != -1) {
                    properties.setAxisChoice(axis);
                }
                if (axis == IChartViewer.X) {
                    if (TIME_STAMP_NAME.equals(viewId)) {
                        xAsDate = true;
                        chartProperties.getXAxisProperties().setLabelFormat(
View Full Code Here

            List<String> displayableList = extractAvailableDeviceNames(true, deviceList);
            deviceList.clear();
            int size = Math.min(axisList.size(), displayableList.size());
            for (int i = 0; i < size; i++) {
                String viewId = displayableList.get(i);
                PlotProperties properties = config.getPlotProperties(viewId);
                if (properties == null) {
                    properties = new PlotProperties(CometeColorUtil.getNextColor());
                    properties.getCurve().setName(viewId);
                }
                else {
                    properties = properties.clone();
                }
                int axis = convertDisplayAxisToAxis(axisList.get(i));
                if (axis != -1) {
                    properties.setAxisChoice(axis);
                }
                if (axis == IChartViewer.X) {
                    if (TIME_STAMP_NAME.equals(viewId)) {
                        xAsDate = true;
                        chartProperties.getXAxisProperties().setLabelFormat(
View Full Code Here

        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

Related Classes of fr.soleil.comete.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.