/**
* @constructor
*/
function XUILineConsumption() {
}
XUILineConsumption.prototype = {
//组件
/**
"line":{
"title":"线0",
"name":"line",
"type":"PUILineInterface",
"index":0
}*/
/**
"title":{
"title":"标题",
"name":"title",
"type":"PUITitleInterface",
"index":0
}*/
//接口
/**
* 设置背景色
* @param {String} strColor 背景色
* @property {Color} BgColor "0xffffffff"
*/
SetBackgroundColor:function (strColor) {
},
/**
* 主标题名
* @param {String} strName 主标题名
* @property {String} TextName "示例主标题"
*/
SetTextName:function (strName) {
},
/**
* 设置副标题名
* @param {String} strName 副标题名
* @property {String} SubTextName "示例副标题"
*/
SetSubTextName:function (strName) {
},
/**
* 设置线宽
* @param {Number} nWidth 线宽
* @property {Number} LineWidth 2
*/
SetLineWidth:function (nWidth) {
},
/**
* 设置线类型
* @param {String} sType 线类型
* @property {Combo} LineTpye ["solid","dashed","dotted"]
*/
SetLineTpye:function (sType) {
},
/**
* 设置指定的线颜色
* @param {String} strName 分类的名字
* @param {String} strColor 指定的线颜色
* @property {Collection} LineColor ["示例一","0xffc23531"]
*/
SetLineColor:function (strName,strColor) {
},
/**
* 设置区域色
* @param {String} strName 类名
* @param {String} strColor 区域色
* @property {Collection} AreaColor ["示例一","0x00ffffff"]
*/
SetAreaColor:function (strName,strColor) {
},
/**
* 设置区域范围
* @param {String} strName 类名
* @param {String} strArea 区域名
* @param {Number} nIndex 第几个区域
* @param {String} strStartTime 起点时间
* @param {String} strEndTime 结束时间
* @property {Collection} AreaSize ["示例一","早高峰",0,"07:30","10:00"]
*/
SetAreaSize:function (strName,strArea,nIndex,strStartTime,strEndTime) {
},
/**
* 增加区域范围
* @param {String} strName 类名
* @param {String} strArea 区域名
* @param {String} strStartTime 起点时间
* @param {String} strEndTime 结束时间
*/
SetAddAreaSize:function (strName,strArea,strStartTime,strEndTime) {
},
/**
* 删除区域范围
* @param {String} strName 类名
* @param {String} strArea 区域名
*/
SetDelAreaSize:function (strName,strArea) {
},
/**
* 设置段映射
* @param {Number} nIndex 分段的索引
* @param {Number} nLte 小于等于
* @param {Number} nGt 大小于
* @param {String} strColor 结束时间
* @property {Collection} VisualMap [0,8,5,"0xffff0000"]
*/
SetVisualMap:function (nIndex,nLte,nGt,strColor) {
},
/**
* 设置线节点类型
* @param {String} sType 线节点类型
* @property {Combo} NodeType ["emptyCircle","rect","circle","roundRect", "triangle", "diamond", "pin", "arrow", "none"]
*/
SetNodeType:function (sType) {
},
/**
* 设置节点大小
* @param {Number} nSize 节点大小
* @property {Number} NodeSize 4
*/
SetNodeSize:function (nSize) {
},
/**
* 设置是否显示X轴分割线
* @param {Boolean} bShow X轴分割线
* @property {Boolean} XAxisSplitLine false
*/
SetXAxisSplitLine:function (bShow) {
},
/**
* 设置是否显示Y轴分割线
* @param {Boolean} bShow Y轴分割线
* @property {Boolean} YAxisSplitLine true
*/
SetYAxisSplitLine:function (bShow) {
},
/**
* 设置X轴文字颜色
* @param {String} strColor X轴文字颜色
* @property {Color} XAxisTextColor "0xff000000"
*/
SetXAxisTextColor:function (strColor) {
},
/**
* 设置Y轴文字颜色
* @param {String} strColor Y轴文字颜色
* @property {Color} YAxisTextColor "0xff000000"
*/
SetYAxisTextColor:function (strColor) {
},
/**
* 设置X轴文字大小
* @param {Number} nSize X轴文字大小
* @property {Number} XAxisTextSize 14
*/
SetXAxisTextSize:function (nSize) {
},
/**
* 设置X轴名称大小
* @param {Number} nSize X轴名称大小
* @property {Number} XAxisNameSize 12
*/
SetXAxisNameSize:function (nSize) {
},
/**
* 设置Y轴文字大小
* @param {Number} nSize Y轴文字大小
* @property {Number} YAxisTextSize 14
*/
SetYAxisTextSize:function (nSize) {
},
/**
* 设置Y轴名称大小
* @param {Number} nSize Y轴名称大小
* @property {Number} YAxisNameSize 12
*/
SetYAxisNameSize:function (nSize) {
},
/**
* 设置X轴命名
* @param {String} strName X轴命名
* @property {String} XAxisName ""
*/
SetXAxisName:function (strName) {
},
/**
* 设置Y轴命名
* @param {String} strName X轴命名
* @property {String} YAxisName ""
*/
SetYAxisName:function (strName) {
},
/**
* X轴刻度名
* @param {Array} arrName 刻度名
* @property {Array} XAxisValue ["00:00", "01:15", "02:30", "03:45", "05:00", "06:15", "07:30", "08:45", "10:00", "11:15", "12:30", "13:45", "15:00", "16:15", "17:30", "18:45", "20:00", "21:15", "22:30", "23:45"]
*/
SetXAxisValue:function (arrName) {
},
/**
* 说明是否显示
* @param {Boolean} bShow 是否显示
* @property {Boolean} LegendShow false
*/
SetLegendShow:function (bShow) {
},
/**
* 增加数据分类
* @param {String} strName 增加的类名
* @param {Array} arrData 增加的数据
*/
SetAddData:function (strName,arrData) {
},
/**
* 增加数据线
* @param {Array} arrData 增加数据
*/
AddDataForProp:function (arrData) {
},
/**
* 通过名字修改数据
* @param {String} strName 线名
* @param {Number} nIndex 位置的索引
* @param {Number} nData 新数据
*/
SetData:function (strName,nIndex,nData) {
},
/**
* 通过名字获取数据
* @param {String} strName 线名
* @param {Number} nIndex 位置的索引
*/
GetOneData:function (strName,nIndex) {
},
/**
* 删除数据分类
* @param {Number} nClass 要删除的分类的索引
*/
SetRemoveClass:function (nClass) {
},
/**
* 通过名字删除数据
* @param {String} strName 线名
* @property {String} RemoveClassByName "线名"
*/
SetRemoveClassByName:function (strName) {
},
/**
* 设置清空数据
*/
SetClearData:function () {
},
}