com.google.gwt.visualization.client.visualizations
Class Gauge.Options

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.ajaxloader.client.Properties
          extended by com.google.gwt.visualization.client.AbstractDrawOptions
              extended by com.google.gwt.visualization.client.visualizations.Gauge.Options
Enclosing class:
Gauge

public static class Gauge.Options
extends AbstractDrawOptions

Options for drawing the chart.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.ajaxloader.client.Properties
Properties.TypeException
 
Constructor Summary
protected Gauge.Options()
           
 
Method Summary
static Gauge.Options create()
           
 void setGaugeRange(int min, int max)
          Set the range of values for the Gauge.
 void setGreenRange(int from, int to)
          Set the range of values to be highlighted in green.
 void setHeight(int height)
           
 void setMajorTicks(java.lang.String... labels)
           
 void setMinorTicks(int numberOfTicks)
           
 void setRedRange(int from, int to)
          Set the range of values to be highlighted in red.
 void setSize(int width, int height)
           
 void setWidth(int width)
           
 void setYellowRange(int from, int to)
          Set the range of values to be highlighted in yellow.
 
Methods inherited from class com.google.gwt.ajaxloader.client.Properties
getBoolean, getDate, getNumber, getObject, getString, remove, set, set, set, set, set, typeof
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gauge.Options

protected Gauge.Options()
Method Detail

create

public static Gauge.Options create()

setGaugeRange

public final void setGaugeRange(int min,
                                int max)
Set the range of values for the Gauge.

Parameters:
min - The minimum value shown on the Gauge.
max - The maximum value shown on the Gauge.

setGreenRange

public final void setGreenRange(int from,
                                int to)
Set the range of values to be highlighted in green.

Parameters:
from - The value where the green highlighting should start.
to - The value where the green highlighting should end.

setHeight

public final void setHeight(int height)

setMajorTicks

public final void setMajorTicks(java.lang.String... labels)

setMinorTicks

public final void setMinorTicks(int numberOfTicks)

setRedRange

public final void setRedRange(int from,
                              int to)
Set the range of values to be highlighted in red.

Parameters:
from - The value where the red highlighting should start.
to - The value where the red highlighting should end.

setSize

public final void setSize(int width,
                          int height)

setWidth

public final void setWidth(int width)

setYellowRange

public final void setYellowRange(int from,
                                 int to)
Set the range of values to be highlighted in yellow.

Parameters:
from - The value where the yellow highlighting should start.
to - The value where the yellow highlighting should end.