ui.GaugeTheme Extends
A class for the default color theme for a Gauge. Users can extend this class to provide a custom color theme, and apply the custom color theme by calling goog.ui.Gauge#setTheme.

Inheritance

Constructor

goog.ui.GaugeTheme()

Instance Methods

Public Protected Private
getExternalBorderFill(cxcyr) !goog.graphics.Fill
Returns the fill for the external border of the gauge.
Arguments:
cx : number
X coordinate of the center of the gauge.
cy : number
Y coordinate of the center of the gauge.
r : number
Radius of the gauge.
Returns: !goog.graphics.Fill  The fill to use.
code »
getExternalBorderStroke() !goog.graphics.Stroke
Returns the stroke for the external border of the gauge.
Returns: !goog.graphics.Stroke  The stroke to use.
code »
getHingeFill(cxcyr) !goog.graphics.Fill
Returns the fill for the hinge at the center of the gauge.
Arguments:
cx : number
X coordinate of the center of the gauge.
cy : number
Y coordinate of the center of the gauge.
r : number
Radius of the hinge.
Returns: !goog.graphics.Fill  The fill to use.
code »
getHingeStroke() !goog.graphics.Stroke
Returns the stroke for the hinge at the center of the gauge.
Returns: !goog.graphics.Stroke  The stroke to use.
code »
getInternalBorderFill(cxcyr) !goog.graphics.Fill
Returns the fill for the internal border of the gauge.
Arguments:
cx : number
X coordinate of the center of the gauge.
cy : number
Y coordinate of the center of the gauge.
r : number
Radius of the gauge.
Returns: !goog.graphics.Fill  The fill to use.
code »
getInternalBorderStroke() !goog.graphics.Stroke
Returns the stroke for the internal border of the gauge.
Returns: !goog.graphics.Stroke  The stroke to use.
code »
getMajorTickStroke() !goog.graphics.Stroke
Returns the stroke for the major ticks of the gauge.
Returns: !goog.graphics.Stroke  The stroke to use.
code »
getMinorTickStroke() !goog.graphics.Stroke
Returns the stroke for the minor ticks of the gauge.
Returns: !goog.graphics.Stroke  The stroke to use.
code »
getNeedleFill(cxcyr) !goog.graphics.Fill
Returns the fill for the hinge at the center of the gauge.
Arguments:
cx : number
X coordinate of the center of the gauge.
cy : number
Y coordinate of the center of the gauge.
r : number
Radius of the gauge.
Returns: !goog.graphics.Fill  The fill to use.
code »
getNeedleStroke() !goog.graphics.Stroke
Returns the stroke for the gauge needle.
Returns: !goog.graphics.Stroke  The stroke to use.
code »
getTickLabelColor() string
Returns the color for the labels (formatted values) of tick marks.
Returns: string  The color to use.
code »
getTitleColor() string
Returns the color for the gauge title.
Returns: string  The color to use.
code »
getValueColor() string
Returns the color for the gauge value.
Returns: string  The color to use.
code »

Package ui

Package Reference