source: Dev/trunk/src/client/dojox/gauges/AnalogCircleIndicator.js @ 529

Last change on this file since 529 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 992 bytes
Line 
1define(["dojo/_base/declare","./AnalogIndicatorBase"],
2  function(declare, AnalogIndicatorBase) {
3
4return declare("dojox.gauges.AnalogCircleIndicator", [AnalogIndicatorBase], {
5        // summary:
6        //              An indicator for the AnalogGauge that draws a circle. The center of the circle is positioned
7        //              on the circular gauge according to the value of the indicator. The circle has for radius the
8        //              length of the indicator. This indicator is mainly used to draw round ticks for the scale.
9       
10       
11        _getShapes: function(group){
12                // summary:
13                //              Override of dojox.gauges.AnalogLineIndicator._getShapes
14                var color = this.color ? this.color : 'black';
15                var strokeColor = this.strokeColor ? this.strokeColor : color;
16                var stroke = {
17                        color: strokeColor,
18                        width: 1
19                };
20                if (this.color.type && !this.strokeColor){
21                        stroke.color = this.color.colors[0].color;
22                }
23               
24                return [group.createCircle({
25                        cx: 0,
26                        cy: -this.offset,
27                        r: this.length
28                }).setFill(color).setStroke(stroke)];
29        }
30});
31});
Note: See TracBrowser for help on using the repository browser.