Example usage for com.google.gwt.visualization.client Color3D setFaceColor

List of usage examples for com.google.gwt.visualization.client Color3D setFaceColor

Introduction

In this page you can find the example usage for com.google.gwt.visualization.client Color3D setFaceColor.

Prototype

public final Color3D setFaceColor(String color) 

Source Link

Document

Color to use on the face of the visualization.

Usage

From source file:com.tasktop.c2c.server.profile.web.ui.client.graphs.CommitsByAuthorPieChart.java

License:Open Source License

private Color3D[] getPallete() {
    Color3D[] result = new Color3D[dashboardChartConstants.getColorPalette().length];
    int i = 0;//from  w ww .  j a  va 2  s .  c  o  m
    for (String color : dashboardChartConstants.getColorPalette()) {
        Color3D c = Color3D.create();
        c.setShadeColor("black");
        c.setFaceColor(color);
        result[i++] = c;
    }
    return result;
}