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

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


     *
     * @param dataViewId
     * @param yValue
     */
    protected void setDataViewColor(final String dataViewId, final double yValue) {
        CometeColor color = getBarCometeColor(yValue);
        setDataViewCometeColor(dataViewId, color);
        setDataViewCometeFillColor(dataViewId, color);
    }
View Full Code Here


        setDataViewLabelVisible(id, false);
        setDataViewClickable(id, false);
        setDataViewMarkerStyle(id, IChartViewer.MARKER_VERT_LINE);
        int[] colors = roiColors;
        if ((colors != null) && (index < colors.length)) {
            CometeColor roiColor = ColorTool.getCometeColor(new Color(colors[index]));
            setDataViewCometeColor(id, roiColor);
            setDataViewCometeFillColor(id, roiColor);
            setDataViewMarkerCometeColor(id, roiColor);
        }
        String[] names = roiNames;
View Full Code Here

            String[] labels = new String[zoneColors.length];
            double[] pos = new double[zoneColors.length];
            for (int i = 0; i < zoneColors.length; i++) {
                String id = "Roi" + (i + 1);
                CometeColor color = ColorTool.getCometeColor(new Color(zoneColors[i]));
                chart.setDataViewCometeColor(id, color);
                chart.setDataViewFillStyle(id, IChartViewer.FILL_STYLE_SOLID);
                chart.setDataViewMarkerCometeColor(id, color);
                chart.setDataViewCometeColor(id, color);
                chart.setDataViewLabelVisible(id, false);
View Full Code Here

        setDataViewLabelVisible(id, false);
        setDataViewClickable(id, false);
        setDataViewMarkerStyle(id, IChartViewer.MARKER_VERT_LINE);
        int[] colors = roiColors;
        if ((colors != null) && (index < colors.length)) {
            CometeColor roiColor = ColorTool.getCometeColor(new Color(colors[index]));
            setDataViewCometeColor(id, roiColor);
            setDataViewCometeFillColor(id, roiColor);
            setDataViewMarkerCometeColor(id, roiColor);
        }
        String[] names = roiNames;
View Full Code Here

            chartViewer.setDataViewMathProperties(dataViewId, properties.getMath());
            chartViewer.setDataViewSmoothingProperties(dataViewId, properties.getSmoothing());
            chartViewer.setDataViewTransformationProperties(dataViewId, properties.getTransform());
            // chartViewer.setDataViewPlotProperties(dataViewId, properties);
        } else {
            CometeColor color = chartViewer.getDataViewCometeColor(dataViewId);
            if (color == null) {
                color = CometeColor.RED;
                if (dataViewId.equals(dataFittedName)) {
                    color = dataFittedColor;
                }
View Full Code Here

                        newdataViewId = getDataViewExtendedName(dataViewId, elementIndex);
                        newDisplayName = getDataViewExtendedName(displayName, elementIndex);
                    }
                    // System.out.println("dataViewId=" + newdataViewId);
                    // chartViewer.setDataViewDisplayName(newdataViewId, newDisplayName);
                    CometeColor dataViewColor = null;
                    if (playerMode) {
                        dataViewColor = playerDataViewDefaultColor;
                    }
                    else {
                        dataViewColor = colorMap.get(newDisplayName);
View Full Code Here

            chartViewer.setDataViewTransformationProperties(dataViewId, properties.getTransform());
            // chartViewer.setDataViewPlotProperties(dataViewId, properties);
        }
        else {
            String displayName = chartViewer.getDataViewDisplayName(dataViewId);
            CometeColor color = colorMap.get(displayName);
            if (color == null) {
                color = chartViewer.getDataViewCometeColor(dataViewId);
                colorMap.put(displayName, color);
            }
            chartViewer.setDataViewCometeColor(dataViewId, color);
View Full Code Here

                        newDisplayName = getDataViewExtendedName(displayName, elementIndex);
                    }
                    // System.out.println("dataViewId=" + newdataViewId);
                    // chartViewer.setDataViewDisplayName(newdataViewId,
                    // newDisplayName);
                    CometeColor dataViewColor = null;
                    if (playerMode) {
                        dataViewColor = playerDataViewDefaultColor;
                    } else {
                        dataViewColor = colorMap.get(newDisplayName);
                        if (dataViewColor == null) {
View Full Code Here

            chartViewer.setDataViewSmoothingProperties(dataViewId, properties.getSmoothing());
            chartViewer.setDataViewTransformationProperties(dataViewId, properties.getTransform());
            // chartViewer.setDataViewPlotProperties(dataViewId, properties);
        } else {
            String displayName = chartViewer.getDataViewDisplayName(dataViewId);
            CometeColor color = colorMap.get(displayName);
            if (color == null) {
                color = chartViewer.getDataViewCometeColor(dataViewId);
                colorMap.put(displayName, color);
            }
            chartViewer.setDataViewCometeColor(dataViewId, color);
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

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.