a:92:{s:9:"#provides";s:25:"dojox.widget.gauge._Gauge";s:9:"#resource";s:22:"widget/gauge/_Gauge.js";s:9:"#requires";a:7:{i:0;a:3:{i:0;s:6:"common";i:1;s:13:"dijit._Widget";i:2;s:5:"dijit";}i:1;a:3:{i:0;s:6:"common";i:1;s:16:"dijit._Templated";i:2;s:5:"dijit";}i:2;a:3:{i:0;s:6:"common";i:1;s:16:"dijit._Container";i:2;s:5:"dijit";}i:3;a:3:{i:0;s:6:"common";i:1;s:16:"dijit._Contained";i:2;s:5:"dijit";}i:4;a:3:{i:0;s:6:"common";i:1;s:13:"dijit.Tooltip";i:2;s:5:"dijit";}i:5;a:3:{i:0;s:6:"common";i:1;s:14:"dojo.fx.easing";i:2;s:4:"dojo";}i:6;a:2:{i:0;s:6:"common";i:1;s:9:"dojox.gfx";}}s:25:"dojox.widget.gauge._Gauge";a:6:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:13:"dijit._Widget";}s:4:"call";a:3:{i:0;s:13:"dijit._Widget";i:1;s:16:"dijit._Templated";i:2;s:16:"dijit._Container";}}s:6:"mixins";a:1:{s:9:"prototype";a:2:{i:0;s:26:"dijit._Templated.prototype";i:1;s:26:"dijit._Container.prototype";}}s:7:"summary";s:42:"a gauge built using the dojox.gfx package.";s:11:"description";s:294:"using dojo.gfx (and thus either SVG or VML based on what is supported), this widget builds a gauge component, used to display numerical data in a familiar format usage: this widget is not to be used alone. it is meant to be subclassed, such as dojox.widget.BarGauge or dojox.widget.AnalogGauge";s:9:"classlike";b:1;}s:31:"dojox.widget.gauge._Gauge.width";a:3:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:3:"The";s:7:"summary";s:318:"width of the mark length: The length of the mark interval: The interval the ticks should be added on color: The color of the mark and text font: an object with any/all of the following parameters: {family: "Helvetica", style: "italic", variant: 'small-caps', weight: 'bold', size: "18pt"}";}s:32:"dojox.widget.gauge._Gauge.height";a:3:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:6:"Number";s:7:"summary";s:40:"the height of the gauge (default is 200)";}s:36:"dojox.widget.gauge._Gauge.background";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:6:"Object";s:7:"summary";s:249:"the color of the background. This must be an object of one of two forms: {'color': 'color-name'} OR (for a gradient:) {'type': 'linear', 'x1': 0, 'x2': 0, 'y1': 0, 'y2': 200, 'colors': [{offset: 0, color:'#C0C0C0'}, {offset: 1, color: '#E0E0E0'}] }";}s:29:"dojox.widget.gauge._Gauge.min";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:6:"Number";s:7:"summary";s:116:"The minimum value of the gauge. Normally not set explicitly, as it will be determined by the ranges that are added.";}s:29:"dojox.widget.gauge._Gauge.max";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:6:"Number";s:7:"summary";s:116:"The maximum value of the gauge. Normally not set explicitly, as it will be determined by the ranges that are added.";}s:31:"dojox.widget.gauge._Gauge.image";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:6:"String";s:7:"summary";s:48:"background image for gauge (default is no image)";}s:40:"dojox.widget.gauge._Gauge.useRangeStyles";a:3:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:6:"Number";s:7:"summary";s:285:"indicates whether to use given css classes (dojoxGaugeRangeXX) to determine the color (and other style attributes?) of the ranges this value should be the number of dojoxGaugeRange classes that are defined, starting at dojoxGaugeRange1 (0 indicates falling to default hardcoded colors)";}s:36:"dojox.widget.gauge._Gauge.useTooltip";a:3:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:7:"Boolean";s:7:"summary";s:75:"indicates whether tooltips should be displayed for ranges, indicators, etc.";}s:36:"dojox.widget.gauge._Gauge.majorTicks";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:6:"Object";s:7:"summary";s:297:"An object representing the tick marks that should be added to the gauge. Major tick marks have a text label indicating the value. The object can have the following attributes (required are marked with a *): offset: the distance from the 'center' of the gauge. Used differently for Analog vs. Bar";}s:36:"dojox.widget.gauge._Gauge.minorTicks";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:6:"Object";s:7:"summary";s:191:"An object of the same format as majorTicks, indicating where the minor (label-less) marks should be placed The font parameter is ignored if provided since minor tick marks have no text label.";}s:43:"dojox.widget.gauge._Gauge._defaultIndicator";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:9:"Objection";s:7:"summary";s:218:"Should be overridden by any extending classes and used to indicate what the 'default' indicator is. This object is used as the indicator when creating tick marks or when an anonmyous object is passed into addIndicator.";s:7:"private";b:1;}s:39:"dojox.widget.gauge._Gauge.defaultColors";a:3:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:5:"Array";s:7:"summary";s:43:"Set of default colors to color ranges with.";}s:33:"dojox.widget.gauge._Gauge.surface";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:6:"Object";s:7:"summary";s:104:"The SVG/VML surface that the shapes are drawn on. Can be accessed/used by indicators to draw themselves";}s:36:"dojox.widget.gauge._Gauge.hideValues";a:3:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:7:"Boolean";s:7:"summary";s:147:"indicates whether the text boxes showing the value of the indicator (as text content) should be hidden or shown. Default is not hidden, aka shown.";}s:38:"dojox.widget.gauge._Gauge.gaugeContent";a:2:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:7:"summary";s:0:"";}s:38:"dojox.widget.gauge._Gauge.templatePath";a:2:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:7:"summary";s:0:"";}s:44:"dojox.widget.gauge._Gauge._backgroundDefault";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:6:"Object";s:7:"private";b:1;s:7:"summary";s:0:"";}s:36:"dojox.widget.gauge._Gauge._rangeData";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:7:"private";b:1;s:7:"summary";s:0:"";}s:40:"dojox.widget.gauge._Gauge._indicatorData";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:7:"private";b:1;s:7:"summary";s:0:"";}s:31:"dojox.widget.gauge._Gauge._drag";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:7:"private";b:1;s:7:"summary";s:0:"";}s:30:"dojox.widget.gauge._Gauge._img";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:7:"private";b:1;s:7:"summary";s:0:"";}s:38:"dojox.widget.gauge._Gauge._overOverlay";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:7:"private";b:1;s:7:"summary";s:0:"";}s:36:"dojox.widget.gauge._Gauge._lastHover";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:8:"instance";s:25:"dojox.widget.gauge._Gauge";s:7:"private";b:1;s:7:"summary";s:0:"";}s:33:"dojox.widget.gauge._Gauge.startup";a:4:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:8:"Function";s:6:"source";s:6134:"dojo.provide("dojox.widget.gauge._Gauge"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.require("dijit._Container"); dojo.require("dijit._Contained"); dojo.require("dijit.Tooltip"); dojo.require("dojo.fx.easing"); dojo.require("dojox.gfx"); dojo.experimental("dojox.widget.gauge._Gauge"); dojo.declare("dojox.widget.gauge._Gauge",[dijit._Widget, dijit._Templated, dijit._Container],{ // summary: // a gauge built using the dojox.gfx package. // // description: // using dojo.gfx (and thus either SVG or VML based on what is supported), this widget // builds a gauge component, used to display numerical data in a familiar format // // usage: // this widget is not to be used alone. it is meant to be subclassed, such as // dojox.widget.BarGauge or dojox.widget.AnalogGauge // width: Number // the width of the gauge (default is 300) width: 0, // height: Number // the height of the gauge (default is 200) height: 0, // background: Object // the color of the background. This must be an object of one of two forms: // {'color': 'color-name'} // OR // (for a gradient:) // {'type': 'linear', 'x1': 0, 'x2': 0, 'y1': 0, 'y2': 200, 'colors': [{offset: 0, color:'#C0C0C0'}, {offset: 1, color: '#E0E0E0'}] } background: null, // min: Number // minimum value displayed by gauge (default is lowest range value) min: 0, // max: Number // maximum value displayed by gauge (default is largest range value) max: 0, // image: String // background image for gauge (default is no image) image: null, // useRangeStyles: Number // indicates whether to use given css classes (dojoxGaugeRangeXX) // to determine the color (and other style attributes?) of the ranges // this value should be the number of dojoxGaugeRange classes that are // defined, starting at dojoxGaugeRange1 (0 indicates falling to default // hardcoded colors) useRangeStyles: 0, // useTooltip: Boolean // indicates whether tooltips should be displayed for ranges, indicators, etc. useTooltip: true, // majorTicks: Object // An object representing the tick marks that should be added to the gauge. Major tick marks have a text label // indicating the value. The object can have the following attributes (required are marked with a *): // offset: the distance from the 'center' of the gauge. Used differently for Analog vs. Bar // width: The width of the mark // length: The length of the mark // interval: The interval the ticks should be added on // color: The color of the mark and text // font: an object with any/all of the following parameters: // {family: "Helvetica", style: "italic", variant: 'small-caps', weight: 'bold', size: "18pt"} majorTicks: null, // minorTicks: Object // An object of the same format as majorTicks, indicating where the minor (label-less) marks should be placed // The font parameter is ignored if provided since minor tick marks have no text label. minorTicks: null, // _defaultIndicator: Objection // Should be overridden by any extending classes and used to indicate what the 'default' indicator is. // This object is used as the indicator when creating tick marks or when an anonmyous object is passed into // addIndicator. _defaultIndicator: null, // defaultColors: Array // Set of default colors to color ranges with. defaultColors: [[0x00,0x54,0xAA,1], [0x44,0x77,0xBB,1], [0x66,0x99,0xCC,1], [0x99,0xBB,0xEE,1], [0x99,0xCC,0xFF,1], [0xCC,0xEE,0xFF,1], [0xDD,0xEE,0xFF,1]], // min: Number // The minimum value of the gauge. Normally not set explicitly, as it will be determined by // the ranges that are added. min: null, // max: Number // The maximum value of the gauge. Normally not set explicitly, as it will be determined by // the ranges that are added. max: null, // surface: Object // The SVG/VML surface that the shapes are drawn on. Can be accessed/used by indicators to draw themselves surface: null, // hideValues: Boolean // indicates whether the text boxes showing the value of the indicator (as text // content) should be hidden or shown. Default is not hidden, aka shown. hideValues: false, // internal data gaugeContent: undefined, templatePath: dojo.moduleUrl("dojox.widget.gauge", "_Gauge.html"), _backgroundDefault: {color: '#E0E0E0'}, _rangeData: null, _indicatorData: null, _drag: null, _img: null, _overOverlay: false, _lastHover: '', startup: function(){ // handle settings from HTML by making sure all the options are // converted correctly to numbers and that we calculate defaults // for cx, cy and radius if(this.image === null){ this.image={}; } this.connect(this.gaugeContent, 'onmousemove', this.handleMouseMove); this.connect(this.gaugeContent, 'onmouseover', this.handleMouseOver); this.connect(this.gaugeContent, 'onmouseout', this.handleMouseOut); this.connect(this.gaugeContent, 'onmouseup', this.handleMouseUp); if(!dojo.isArray(this.ranges)){ this.ranges = []; } if(!dojo.isArray(this.indicators)){ this.indicators = []; } var ranges = [], indicators = []; var i; if(this.hasChildren()){ var children = this.getChildren(); for(i=0; i this.max)){this.max = range.high;} if(!range.color){ var colorIndex = this._rangeData.length % this.defaultColors.length; if(dojox.gfx.svg && this.useRangeStyles > 0){ colorIndex = (this._rangeData.length % this.useRangeStyles)+1; range.color = {style: "dojoxGaugeRange"+colorIndex}; }else{ colorIndex = this._rangeData.length % this.defaultColors.length; range.color = this.defaultColors[colorIndex]; } } this._rangeData[this._rangeData.length] = range; } this.draw();";s:7:"summary";s:47:"This method is used to add ranges to the gauge.";s:11:"description";s:213:"Creates a range (colored area on the background of the gauge) based on the given arguments. range: A range is either a dojox.widget.gauge.Range object, or a object with similar parameters (low, high, hover, etc.).";}s:38:"dojox.widget.gauge._Gauge.addIndicator";a:6:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:9:"indicator";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:98:"A dojox.widget.gauge._Indicator or an object with similar parameters (value, color, offset, etc.).";}}s:6:"source";s:472:" indicator._gauge = this; if(!indicator.declaredClass){// !== 'dojox.widget.gauge.Indicator'){ // We were passed a plain object, need to make an indicator out of it. indicator = new this._defaultIndicator(indicator); } if(!indicator.hideValue){ this.containerNode.appendChild(indicator.domNode); } if(!this._indicatorData){this._indicatorData = [];} this._indicatorData[this._indicatorData.length] = indicator; indicator.draw(); return indicator;";s:7:"summary";s:57:"This method is used to add an indicator to the bar graph.";s:11:"description";s:79:"This method adds an indicator, such as a tick mark or needle, to the bar graph.";}s:41:"dojox.widget.gauge._Gauge.removeIndicator";a:5:{s:9:"prototype";s:25:"dojox.widget.gauge._Gauge";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:9:"indicator";a:1:{s:4:"type";s:6:"Object";}}s:6:"source";s:177:" for(var i=0; i