com.google.gwt.visualization.client.visualizations
Class Gauge.Options
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.ajaxloader.client.Properties
com.google.gwt.visualization.client.AbstractDrawOptions
com.google.gwt.visualization.client.visualizations.Gauge.Options
- Enclosing class:
- Gauge
public static class Gauge.Options
- extends AbstractDrawOptions
Options for drawing the chart.
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 |
Gauge.Options
protected Gauge.Options()
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.