dojox/widget/gauge/AnalogNeedleIndicator.js

  • Provides:

    • dojox.widget.gauge.AnalogNeedleIndicator
  • Requires:

    • dojox.widget.AnalogGauge in common
  • dojox.widget.gauge.AnalogNeedleIndicator

    • type
      Function
    • chains:
      • dojox.widget.gauge.AnalogLineIndicator: (prototype)
      • dojox.widget.gauge.AnalogLineIndicator: (call)
    • summary
  • dojox.widget.gauge.AnalogNeedleIndicator._getShapes

    • type
      Function
    • source: [view]
        if(!this._gauge){
         return null;
        }
        var x = Math.floor(this.width/2);
        var head = this.width * 5;
        var odd = (this.width & 1);
        var shapes = [];
        var stroke = {color: this.color, width: 1};
        if(this.color.type){
         stroke.color = this.color.colors[0].color;
        }
        var xy = (Math.sqrt(2) * (x));
        shapes[0] = this._gauge.surface.createPath()
           .setStroke(stroke).setFill(this.color)
           .moveTo(xy, -xy).arcTo((2*x), (2*x), 0, 0, 0, -xy, -xy)
           .lineTo(0, -this.length).closePath();
        shapes[1] = this._gauge.surface.createCircle({cx: 0, cy: 0, r: this.width})
           .setStroke({color: this.color})
           .setFill(this.color);
        return shapes;
    • summary
      Override of dojox.widget.AnalogLineIndicator._getShapes
  • dojox.widget.gauge

    • type
      Object
    • summary
  • dojox.widget

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary