/**
* @constructor
*/
function XUITownDivision() {
}
XUITownDivision.prototype = {
//组件
/**
"legend1":{
"title":"图例1",
"name":"legend1",
"type":"PUILegendInterface",
"index":0
}*/
/**
"legend2":{
"title":"图例2",
"name":"legend2",
"type":"PUILegendInterface",
"index":1
}*/
/**
"title":{
"title":"标题",
"name":"title",
"type":"PUITitleInterface",
"index":0
}*/
/**
"pie1":{
"title":"饼图1",
"name":"pie1",
"type":"PUIPieInterface",
"index":0
}*/
/**
"pie2":{
"title":"饼图2",
"name":"pie2",
"type":"PUIPieInterface",
"index":1
}*/
//接口
/**
* 设置颜色组
* @param {String} strColor1 颜色1
* @param {String} strColor2 颜色2
* @param {String} strColor3 颜色3
* @param {String} strColor4 颜色4
* @property {Collection} ColorGroup ["0xffffffff", "0xff00b4ff", "0xff0087dc", "0xff17539e"]
*/
SetColorGroup:function (strColor1,strColor2,strColor3,strColor4) {
},
/**
* 设置图例文字颜色
* @param {String} strColor 图例文字颜色
* @property {Color} LegendLabelColor "0xff9698B7"
*/
SetLegendLabelColor:function (strColor) {
},
/**
* 设置百分比位置
* @param {Number} nLeft 左
* @param {Number} nTop 上
* @property {Collection} TitilePostion [53,24]
*/
SetTitlePosition:function (nLeft,nTop) {
},
/**
* 设置百分比颜色
* @param {String} strColor
* @property {Color} TitleColor "0xffffffff"
*/
SetTitleColor:function (strColor) {
},
/**
* 设置百分比大小
* @param {Number} nSize
* @property {Number} TitleSize 13
*/
SetTitleSize:function (nSize) {
},
/**
* 设置图例文字大小
* @param {Number} nSize 图例文字大小
* @property {Number} LegendLabelSize 10
*/
SetLegendLabelSize:function (nSize) {
},
/**
* 设置图例大小
* @param {Number} nSize 图例大小
* @property {Number} LegendSize 6
*/
SetLegendSize:function (nSize) {
},
/**
* 添加一组数据
* @param {Number} nValue 数值
* @param {String} strName 数值名称
* @param {String} strColor 数值区域颜色
*/
AddNewData:function (nValue,strName,strColor) {
},
/**
* 删除一组数据
*/
DeleteData:function () {
},
/**
* 删除所有数据
*/
ClearAllData:function () {
},
/**
* 修改一组数据
* @param {Number} nIndex 下标
* @param {Number} nValue 数值
*/
ChangeOneData:function (nIndex,nValue) {
},
/**
* 获得一个数据
* @param {Number} nIndex 下标
*/
GetOneData:function (nIndex) {
},
/**
* 获得所有数据
*/
GetAllData:function () {
},
/**
* 设置图例位置偏移
* @param {Number} nIndex 下标
* @param {String} horPos 水平位置
* @param {String} verPos 垂直位置
* @property {Collection} LegendPosition [0,"22%","58%"]
*/
SetLegendPosition:function (nIndex,horPos,verPos) {
},
/**
* 传入随机数据
* @param {Number} nData 数据
* @property {Number} Data 62
*/
SetData:function (nData) {
},
}