The goog.ui.GaugeTheme Class

goog.ui.GaugeTheme()

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 {@link goog.ui.Gauge#setTheme}.

.getExternalBorderFill(cx, cy, r)

Returns the fill for the external border of the gauge.

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.

.getExternalBorderStroke()

Returns the stroke for the external border of the gauge.

returns {goog.graphics.Stroke}
The stroke to use.

.getHingeFill(cx, cy, r)

Returns the fill for the hinge at the center of the gauge.

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.

.getHingeStroke()

Returns the stroke for the hinge at the center of the gauge.

returns {goog.graphics.Stroke}
The stroke to use.

.getInternalBorderFill(cx, cy, r)

Returns the fill for the internal border of the gauge.

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.

.getInternalBorderStroke()

Returns the stroke for the internal border of the gauge.

returns {goog.graphics.Stroke}
The stroke to use.

.getMajorTickStroke()

Returns the stroke for the major ticks of the gauge.

returns {goog.graphics.Stroke}
The stroke to use.

.getMinorTickStroke()

Returns the stroke for the minor ticks of the gauge.

returns {goog.graphics.Stroke}
The stroke to use.

.getNeedleFill(cx, cy, r)

Returns the fill for the hinge at the center of the gauge.

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.

.getNeedleStroke()

Returns the stroke for the gauge needle.

returns {goog.graphics.Stroke}
The stroke to use.

.getTickLabelColor()

Returns the color for the labels (formatted values) of tick marks.

returns {string}
The color to use.

.getTitleColor()

Returns the color for the gauge title.

returns {string}
The color to use.

.getValueColor()

Returns the color for the gauge value.

returns {string}
The color to use.