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

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


    }

    private BooleanComboBox getInitialsParametersModeEditor() {
        if (initialsParametersModeEditor == null) {
            initialsParametersModeEditor = generateBooleanComboBox();
            initialsParametersModeEditor.setCometeBackground(new CometeColor(getBackground()
                    .getRed(), getBackground().getGreen(), getBackground().getBlue()));
            initialsParametersModeEditor.setToolTipText(INITIAL_PARAM_MODE_INFO);
        }
        return initialsParametersModeEditor;
    }
View Full Code Here


    }

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

    }

    private WheelSwitch getInitialWidthEditor() {
        if (initialWidthEditor == null) {
            initialWidthEditor = generateWheelSwitch();
            initialWidthEditor.setCometeBackground(new CometeColor(getBackground().getRed(),
                    getBackground().getGreen(), getBackground().getBlue()));
            initialWidthEditor.setToolTipText(INITIAL_WIDTH_INFO);
        }
        return initialWidthEditor;
    }
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

                                + ".\n\nCorrect values are RECTANGLE, OVAL, POINT, TEXT or CROSS and NONE to supress it.",
                        false, null).setVisible(true);
            }

            if (shape != null) {
                CometeColor color = null;

                try {
                    final Field colorField = CometeColor.class.getDeclaredField(roiDesc[7].trim()
                            .toUpperCase());
                    color = (CometeColor) colorField.get(colorField);
View Full Code Here

            return;
        }

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

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

      return;
    }

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

    widget.setCustomFillCometeColor(cometeColorList);
  }
View Full Code Here

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

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

            widget.setCustomCometeColor(cometeColorList);
        }
View Full Code Here

        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());
            }

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

     *
     * @param yValue
     * @return
     */
    protected CometeColor getBarCometeColor(final double yValue) {
        CometeColor result = defaultBarColor;

        if (alarmEnable) {
            if ((highFault && (yValue > faultLevel)) || (!highFault && (yValue <= faultLevel))) {
                result = BarColor.BAR_FAULT.getCometeColor();
            }
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.