Example usage for com.google.gwt.visualization.client.visualizations.corechart Options setType

List of usage examples for com.google.gwt.visualization.client.visualizations.corechart Options setType

Introduction

In this page you can find the example usage for com.google.gwt.visualization.client.visualizations.corechart Options setType.

Prototype

public final void setType(Type type) 

Source Link

Usage

From source file:com.jythonui.client.charts.CharContainer.java

License:Apache License

private Options startOpt() {
    Options o;
    switch (fo.getChartType()) {
    case PIE://from  w  w w. j  a va  2 s .co  m
        PieChart.PieOptions p = PieChart.PieOptions.create();
        p.set3D(fo.isPie3D());
        o = p;
        break;
    default:
        o = Options.create();
    }
    o.setType(CoreChart.Type.valueOf(fo.getChartType().name()));
    return o;
}