Example usage for com.google.gwt.visualization.client.formatters NumberFormat create

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

Introduction

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

Prototype

public static native NumberFormat create(Options options) ;

Source Link

Usage

From source file:de.uni_koeln.spinfo.maalr.webapp.ui.admin.client.general.CpuGauge.java

License:Apache License

public CpuGauge() {
    chart = new Gauge();
    data = DataTable.create();//  w w w.  j av  a2  s  . com
    data.addColumn(ColumnType.STRING, "Label");
    data.addColumn(ColumnType.NUMBER, "Value");
    data.addRows(1);
    data.setValue(0, 0, "");
    options = Gauge.Options.create();
    com.google.gwt.visualization.client.formatters.NumberFormat.Options loadOptions = NumberFormat.Options
            .create();
    loadOptions.setFractionDigits(2);
    nf = NumberFormat.create(loadOptions);
    initWidget(chart);
}