a:11:{s:9:"#provides";s:37:"dojox.widget.gauge.AnalogArcIndicator";s:9:"#resource";s:34:"widget/gauge/AnalogArcIndicator.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:24:"dojox.widget.AnalogGauge";}}s:37:"dojox.widget.gauge.AnalogArcIndicator";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:38:"dojox.widget.gauge.AnalogLineIndicator";}s:4:"call";a:1:{i:0;s:38:"dojox.widget.gauge.AnalogLineIndicator";}}s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:48:"dojox.widget.gauge.AnalogArcIndicator._createArc";a:6:{s:9:"prototype";s:37:"dojox.widget.gauge.AnalogArcIndicator";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"val";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1375:"dojo.provide('dojox.widget.gauge.AnalogArcIndicator'); dojo.require('dojox.widget.AnalogGauge'); dojo.experimental("dojox.widget.gauge.AnalogArcIndicator"); dojo.declare("dojox.widget.gauge.AnalogArcIndicator",[dojox.widget.gauge.AnalogLineIndicator],{ _createArc: function(val){ // Creating the Arc Path string manually. This is instead of creating new dojox.gfx.Path object // each time since we really just need the Path string (to use with setShape) and we don't want to // have to redo the connects, etc. if(this.shapes[0]){ var a = this._gauge._getRadians(this._gauge._getAngle(val)); var cosa = Math.cos(a); var sina = Math.sin(a); var sa = this._gauge._getRadians(this._gauge.startAngle); var cossa = Math.cos(sa); var sinsa = Math.sin(sa); var off = this.offset + this.width; var p = ['M']; p.push(this._gauge.cx+this.offset*sinsa); p.push(this._gauge.cy-this.offset*cossa); p.push('A', this.offset, this.offset, 0, ((a-sa)>Math.PI)?1:0, 1); p.push(this._gauge.cx+this.offset*sina); p.push(this._gauge.cy-this.offset*cosa); p.push('L'); p.push(this._gauge.cx+off*sina); p.push(this._gauge.cy-off*cosa); p.push('A', off, off, 0, ((a-sa)>Math.PI)?1:0, 0); p.push(this._gauge.cx+off*sinsa); p.push(this._gauge.cy-off*cossa); this.shapes[0].setShape(p.join(' ')); this.currentValue = val; }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:42:"dojox.widget.gauge.AnalogArcIndicator.draw";a:5:{s:9:"prototype";s:37:"dojox.widget.gauge.AnalogArcIndicator";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:11:"dontAnimate";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Boolean";}}s:6:"source";s:962:" var v = this.value; if(v < this._gauge.min){v = this._gauge.min;} if(v > this._gauge.max){v = this._gauge.max;} if(this.shapes){ if(dontAnimate){ this._createArc(v); }else{ var anim = new dojo._Animation({curve: [this.currentValue, v], duration: this.duration, easing: this.easing}); dojo.connect(anim, "onAnimate", dojo.hitch(this, this._createArc)); anim.play(); } }else{ var stroke = {color: this.color, width: 1}; if(this.color.type){ stroke.color = this.color.colors[0].color; } this.shapes = [this._gauge.surface.createPath() .setStroke(stroke).setFill(this.color)]; this._createArc(v); if(this.hover){ this.shapes[0].getEventSource().setAttribute('hover',this.hover); } if(this.onDragMove && !this.noChange){ this._gauge.connect(this.shapes[0].getEventSource(), 'onmousedown', this._gauge.handleMouseDown); this.shapes[0].getEventSource().style.cursor = 'pointer'; } }";s:7:"summary";s:40:"Override of dojox.widget._Indicator.draw";}s:50:"dojox.widget.gauge.AnalogArcIndicator.currentValue";a:2:{s:8:"instance";s:37:"dojox.widget.gauge.AnalogArcIndicator";s:7:"summary";s:0:"";}s:44:"dojox.widget.gauge.AnalogArcIndicator.shapes";a:2:{s:8:"instance";s:37:"dojox.widget.gauge.AnalogArcIndicator";s:7:"summary";s:0:"";}s:18:"dojox.widget.gauge";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:12:"dojox.widget";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}