//>>built define("dojox/dgauges/RectangularSegmentedRangeIndicator",["dojo/_base/declare","dojo/on","dojox/gfx","./IndicatorBase"],function(_1,on,_2,_3){ return _1("dojox.dgauges.RectangularSegmentedRangeIndicator",_3,{start:0,startThickness:10,endThickness:10,fill:null,stroke:null,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,segments:10,segmentSpacing:2,rounded:true,ranges:null,constructor:function(){ this.fill=[255,120,0]; this.stroke={color:"black",width:0.2}; this.addInvalidatingProperties(["start","startThickness","endThickness","fill","stroke","segments","segmentSpacing","ranges"]); },_defaultHorizontalShapeFunc:function(_4,_5,_6,_7,_8,_9,_a,_b,_c,_d){ var _e=_6._contentBox.w; var _f,i,gp,_10; if(this.ranges){ _c={type:"linear",colors:[]}; _c.x1=_7; _c.y1=_8; _c.x2=_7+_e; _c.y2=_8; var _11=this.start; for(i=0;i0){ ew=sw+((ew-sw)*_16); gp=[x,y,x+(_14*_16),y,x+(_14*_16),y+ew,x,y+sw,x,y]; _f=_5.createPolyline(gp).setFill(_c).setStroke(_d); } return _f; },_defaultVerticalShapeFunc:function(_18,_19,_1a,_1b,_1c,_1d,_1e,_1f,_20,_21){ var _22=_1a._contentBox.h; var _23,i,gp,_24; if(this.ranges){ _20={type:"linear",colors:[]}; _20.x1=_1b; _20.y1=_1c; _20.x2=_1b; _20.y2=_1c+_22; var _25=0; for(i=0;i0){ ew=sw+((ew-sw)*_2a); gp=[x,y,x,y+(_28*_2a),x+ew,y+(_28*_2a),x+sw,y,x,y]; _23=_19.createPolyline(gp).setFill(_20).setStroke(_21); } return _23; },indicatorShapeFunc:function(_2c,_2d,_2e,_2f,_30,_31,_32,_33,_34){ if(_2d.scale._gauge.orientation=="horizontal"){ this._defaultHorizontalShapeFunc(_2d,_2c,_2d.scale,_2e,_2f,_30,_31,_32,_33,_34); }else{ this._defaultVerticalShapeFunc(_2d,_2c,_2d.scale,_2e,_2f,_30,_31,_32,_33,_34); } },refreshRendering:function(){ if(this._gfxGroup==null||this.scale==null){ return; } var _35=this.scale.positionForValue(this.start); var pos=this.scale.positionForValue(this.value); this._gfxGroup.clear(); var _36; var _37; var _38; if(this.scale._gauge.orientation=="horizontal"){ _36=_35; _37=this.paddingTop; _38=pos; }else{ _36=this.paddingLeft; _37=_35; _38=pos; } this.indicatorShapeFunc(this._gfxGroup,this,_36,_37,_38,this.startThickness,this.endThickness,this.fill,this.stroke); }}); });