1 /** 2 * Create a new IAnalysis instance. 3 * @class IAnalysis class 4 * --This class could be considered a concrete implementation class 5 * @param {object} mapper IMapper object to use of multiple maps (optional). 6 * @constructor 7 */ 8 function IAnalysis(mapper) { 9 } 10 /** 11 * Create bar analysis 12 * 13 * @param {string} typ Type of the region. 14 * @param {Function} mouseclick The user defined function that is called when a bar analysis image is clicked. 15 * @see http://www.locationbox.com.tr/web/api_analysis.jsp 16 * @see http://www.locationbox.com.tr/web/demo/analysisbar.jsp 17 */ 18 IAnalysis.prototype.createBarAnalysis=function(typ, mouseclick) { 19 return; 20 } 21 22 /** 23 * Create pie analysis 24 * 25 * @param {string} typ Type of the region. 26 * @param {Function} mouseclick The user defined function that is called when a pie analysis image is clicked. 27 * @see http://www.locationbox.com.tr/web/api_analysis.jsp 28 * @see http://www.locationbox.com.tr/web/demo/analysispie.jsp 29 */ 30 IAnalysis.prototype.createPieAnalysis=function(typ, mouseclick) { 31 return; 32 } 33 34 /** 35 * Create map coloring analysis 36 * 37 * @param {string} typ Type of the region. 38 * @param {object} sym Style object 39 * @param {Function} mouseclick The user defined function that is called when a coloring analysis is clicked. 40 * @see http://www.locationbox.com.tr/web/api_analysis.jsp 41 * @see http://www.locationbox.com.tr/web/demo/analysiscoloring.jsp 42 */ 43 IAnalysis.prototype.createColoringAnalysis=function(typ, sym, mouseclick) { 44 return; 45 } 46 47 /** 48 * Remove any analysis being shown. 49 * 50 */ 51 IAnalysis.prototype.removeAnalysis=function() { 52 return; 53 } 54 55 /** 56 * Set the visibility of analysis theme. 57 * @param {boolean} visible Visibility status. Takes true or false as input. 58 */ 59 IAnalysis.prototype.setVisible=function(visible) { 60 return; 61 } 62 63 /** 64 * Set analysis bar style 65 * 66 * @param {obj} style Style object 67 */ 68 IAnalysis.prototype.setAnalysisBarStyle=function(style) { 69 return; 70 } 71 72 /** 73 * Set the data for the bar analysis in xml format. 74 * 75 * @param {string} xml Bar analysis data formatted in xml. 76 * @see http://www.locationbox.com.tr/web/api_analysis.jsp 77 */ 78 IAnalysis.prototype.setAnalysisBarData=function(xml) { 79 return; 80 } 81 82 /** 83 * Set the style of pie analysis specifying names, colors and the radius of the pie image. 84 * 85 * @param {obj} style The style of the pie images in json format. 86 * @see http://www.locationbox.com.tr/web/api_analysis.jsp 87 */ 88 IAnalysis.prototype.setAnalysisPieStyle=function(style) { 89 return; 90 } 91 92 /** 93 * Set the data for the pie analysis in xml format. 94 * 95 * @param {string} xml Pie analysis data formatted in xml. 96 * @see http://www.locationbox.com.tr/web/api_analysis.jsp 97 */ 98 IAnalysis.prototype.setAnalysisPieData=function(xml) { 99 return; 100 } 101 102 /** 103 * Set the data for the map coloring analysis in xml format. 104 * 105 * @param {string} xml Map coloring analysis data formatted in xml. 106 * @see http://www.locationbox.com.tr/web/api_analysis.jsp 107 */ 108 IAnalysis.prototype.setAnalysisColoringData=function(xml) { 109 return; 110 }