/**
* @constructor
*/
function XUISimpleLine() {
}
XUISimpleLine.prototype = {
//组件
/**
"legend1":{
"title":"图例1",
"name":"legend1",
"type":"PUILegendInterface",
"index":0
}*/
/**
"legend2":{
"title":"图例2",
"name":"legend2",
"type":"PUILegendInterface",
"index":1
}*/
/**
"xAxis":{
"title":"x轴",
"name":"xAxis",
"type":"PUIXAxisInterface",
"index":0
}*/
/**
"yAxis":{
"title":"y轴",
"name":"yAxis",
"type":"PUIYAxisInterface",
"index":0
}*/
/**
"line":{
"title":"折线图",
"name":"line",
"type":"PUILineInterface",
"index":0
}*/
//接口
/**
* 设置图标大小
* @param {Number} nWidth 宽度
* @param {Number} nHeight 高度
* @property {Collection} LegendIconSize [25,25]
*/
SetLegendIconSize:function (nWidth,nHeight) {
},
/**
* 设置图例位置
* @param {Number} nIndex 下标
* @param {String} strTop 垂直位置
* @param {String} strLeft 水平位置
* @property {Collection} LegendPosition [0,"3%","2%"]
*/
SetLegendPosition:function (nIndex,strTop,strLeft) {
},
/**
* 设置图例文字大小
* @param {Number} nIndex 下标
* @param {Number} nSize 字体大小
* @property {Collection} LegendTextSize [0,16]
*/
SetLegendTextSize:function (nIndex,nSize) {
},
/**
* 设置图例文字颜色
* @param {Number} nIndex 下标
* @param {String} strColor 文字颜色
* @property {Collection} LegendTextColor [0,"0xffC9CDEA"]
*/
SetLegendTextColor:function (nIndex,strColor) {
},
/**
* 设置图例数字颜色
* @param {String} strColor 数字颜色
* @property {Color} LegendNumberColor "0xffFFFFFF"
*/
SetLegendNumberColor:function (strColor) {
},
/**
* 设置图例数字尺寸
* @param {Number} nSize 数字尺寸
* @property {Number} LegendNumberSize 30
*/
SetLegendNumberSize:function (nSize) {
},
/**
* 设置数据
* @param {Array} arrData 数据
* @property {Array} LineData [15,19,70,35,18,45,20,65,25,20,80,50,85]
*/
SetLineData:function (arrData) {
},
/**
* 修改一个数据
* @param {Number} nIndex 数据下标
* @param {Number} newData 新数据
*/
ChangeOneData:function (nIndex,newData) {
},
/**
* 设置区域填充色
* @param {String} strColor 区域填充色
* @property {Color} LineAreaColor "0xffFFFFFF"
*/
SetLineAreaColor:function (strColor) {
},
/**
* 设置折线颜色
* @param {String} strColor 折线颜色
* @property {Color} LineColor "0xff4D7CAA"
*/
SetLineColor:function (strColor) {
},
/**
* 设置折线宽度
* @param {Number} nWidth 折线宽度
* @property {Number} LineWidth 2
*/
SetLineWidth:function (nWidth) {
},
/**
* 增加一个数据
* @param {Number} nData 数据
*/
AddData:function (nData) {
},
/**
* 删除一个数据
* @param {Number} nIndex 数据
*/
DeleteOneData:function (nIndex) {
},
/**
* 删除所有
*/
DeleteAllData:function () {
},
/**
* 获得所有数据
*/
GetAllData:function () {
},
/**
* 获得一个数据
* @param {Number} nIndex 数据
*/
GetOneData:function (nIndex) {
},
/**
* 数据改变动画
*/
animationChange:function () {
},
}