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

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

Introduction

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

Prototype

public static Color3D create() 

Source Link

Document

Create an object to hold a color/shadow mapping for a chart element.

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  av a 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;
}