goog.ui.GaugeTheme
Provided By |
---|
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
.
new GaugeTheme()
Parameters | None. |
---|
Instance Methods
this.getExternalBorderFill( cx, cy, r ) → goog.graphics.Fill
goog.graphics.Fill
Returns the fill for the external border of the gauge.
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
this.getExternalBorderStroke() → goog.graphics.Stroke
goog.graphics.Stroke
Returns the stroke for the external border of the gauge.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getHingeFill( cx, cy, r ) → goog.graphics.Fill
goog.graphics.Fill
Returns the fill for the hinge at the center of the gauge.
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
this.getHingeStroke() → goog.graphics.Stroke
goog.graphics.Stroke
Returns the stroke for the hinge at the center of the gauge.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getInternalBorderFill( cx, cy, r ) → goog.graphics.Fill
goog.graphics.Fill
Returns the fill for the internal border of the gauge.
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
this.getInternalBorderStroke() → goog.graphics.Stroke
goog.graphics.Stroke
Returns the stroke for the internal border of the gauge.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getMajorTickStroke() → goog.graphics.Stroke
goog.graphics.Stroke
Returns the stroke for the major ticks of the gauge.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getMinorTickStroke() → goog.graphics.Stroke
goog.graphics.Stroke
Returns the stroke for the minor ticks of the gauge.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getNeedleFill( cx, cy, r ) → goog.graphics.Fill
goog.graphics.Fill
Returns the fill for the hinge at the center of the gauge.
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
this.getNeedleStroke() → goog.graphics.Stroke
goog.graphics.Stroke
Returns the stroke for the gauge needle.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getTickLabelColor() → string
string
Returns the color for the labels (formatted values) of tick marks.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getTitleColor() → string
string
this.getValueColor() → string
string