Package fr.soleil.comete.definition.widget.util

Examples of fr.soleil.comete.definition.widget.util.CometeColor


        if (widget != null && colorMarkerList != null && colorMarkerList.length != 0) {

            final CometeColor[] cometeColorList = new CometeColor[colorMarkerList.length];
            for (int i = 0; i < colorMarkerList.length; i++) {
                cometeColorList[i] = new CometeColor(colorMarkerList[i].getRed(),
                        colorMarkerList[i].getGreen(), colorMarkerList[i].getBlue());
            }

            ((IChartViewer) widget).setCustomMarkerCometeColor(cometeColorList);
        }
View Full Code Here


            }
            setTextButton(displayedState);

            // set the color
            if (((StringScalarBox) mybox).isColorEnabled(widget)) {
                CometeColor cometeColor = stateAdapter.getColor(text);
                ((StringButton) widget).setCometeBackground(cometeColor);
            }
        }
View Full Code Here

            }
            setTextButton(displayedState);

            // set the color
            if (((StringScalarBox) mybox).isColorEnabled(widget)) {
                CometeColor cometeColor = stateAdapter.getColor(text);
                ((StringButton) widget).setCometeBackground(cometeColor);
            }
        };
View Full Code Here

        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);
View Full Code Here

        return baseBean.isTimeBase();
    }

    @Override
    public void setCometeColor(CometeColor color) {
        CometeColor oldValue = baseBean.getCometeColor();
        baseBean.setCometeColor(color);
        firePropertyChange("color", oldValue, color);

    }
View Full Code Here

                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);
View Full Code Here

            if (!axisListEquals(display1.getAxisList(), display2.getAxisList())) {
                return false;
            }

            CometeColor cometeColor1 = display1.getCometeColor();
            CometeColor cometeColor2 = display2.getCometeColor();
            if (!cometeColorEquals(cometeColor1, cometeColor2)) {
                return false;
            }

        }
View Full Code Here

        return baseBean.isTimeBase();
    }

    @Override
    public void setCometeColor(CometeColor color) {
        CometeColor oldValue = baseBean.getCometeColor();
        baseBean.setCometeColor(color);
        firePropertyChange("color", oldValue, color);

    }
View Full Code Here

    }

    private WheelSwitch getInitialBackgroundEditor() {
        if (initialBackgroundEditor == null) {
            initialBackgroundEditor = generateWheelSwitch();
            initialBackgroundEditor.setCometeBackground(new CometeColor(getBackground().getRed(),
                    getBackground().getGreen(), getBackground().getBlue()));
            initialBackgroundEditor.setToolTipText(INITIAL_BACKG_INFO);
        }
        return initialBackgroundEditor;
    }
View Full Code Here

    }

    private WheelSwitch getInitialHeightEditor() {
        if (initialHeightEditor == null) {
            initialHeightEditor = generateWheelSwitch();
            initialHeightEditor.setCometeBackground(new CometeColor(getBackground().getRed(),
                    getBackground().getGreen(), getBackground().getBlue()));
            initialHeightEditor.setToolTipText(INITIAL_HEIGHT_INFO);
        }
        return initialHeightEditor;
    }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.definition.widget.util.CometeColor

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.