source: Dev/trunk/src/client/dojox/gauges/AnalogLineIndicator.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: 980 bytes
Line 
1define(["dojo/_base/declare","./AnalogIndicatorBase"],
2  function(declare, AnalogIndicatorBase) {
3
4return declare("dojox.gauges.AnalogLineIndicator", [AnalogIndicatorBase], {
5        // summary:
6        //              An indicator for the AnalogGauge that draws a segment of line that has for length the length of the indicator
7        //              and that starts at an offset from the center of the gauge. The line is drawn on the angle that corresponds
8        //              to the value of the indicator.
9
10        _getShapes: function(/*dojox.gfx.Group*/ group){
11                // summary:
12                //              Private function for generating the shapes for this indicator. An indicator that behaves the
13                //              same might override this one and simply replace the shapes (such as ArrowIndicator).
14                var direction = this.direction;
15                var length = this.length;
16                if (direction == 'inside')
17                        length = - length;
18               
19                return [group.createLine({x1: 0, y1: -this.offset, x2: 0, y2: -length-this.offset})
20                                        .setStroke({color: this.color, width: this.width})];
21        }
22       
23});
24
25});
Note: See TracBrowser for help on using the repository browser.