/**
* @constructor
*/
function XUIUtilizationDashboard() {
}
XUIUtilizationDashboard.prototype = {
//组件
/**
"gauge":{
"title":"仪表盘",
"name":"gauge",
"type":"PUIGaugeInterface",
"index":0
}*/
/**
"gauge1":{
"title":"仪表盘",
"name":"gauge1",
"type":"PUIGaugeInterface",
"index":1
}*/
/**
"gauge2":{
"title":"仪表盘",
"name":"gauge2",
"type":"PUIGaugeInterface",
"index":2
}*/
/**
"gauge3":{
"title":"仪表盘",
"name":"gauge3",
"type":"PUIGaugeInterface",
"index":3
}*/
/**
"gauge4":{
"title":"仪表盘",
"name":"gauge4",
"type":"PUIGaugeInterface",
"index":4
}*/
/**
"gauge5":{
"title":"仪表盘",
"name":"gauge5",
"type":"PUIGaugeInterface",
"index":5
}*/
//接口
/**
* 背景颜色绘制
* @param {Boolean} bDrawColor
* @property {Boolean} BgDrawColor true
*/
SetBgDrawColor:function (bDrawColor) {
},
/**
* 获取背景颜色绘制
* @return {Boolean}
*/
IsBgDrawColor:function () {
},
/**
* 背景颜色
* @param {String} strColor 控件的背景颜色
* @property {Color} BgColor "0xff061432"
*/
SetBgColor:function (strColor) {
},
/**
* 获取背景颜色
* @return {String}
*/
GetBgColor:function () {
},
/**
* 背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} BgImage ""
*/
SetBgImage:function (strImage) {
},
/**
* 获取背景图片
* @return {String}
*/
GetBgImage:function () {
},
/**
* 背景图绘制模式
* @param {String} strModel 绘制模式
* @property {Combo} PicModel ["no-repeat","repeat-x","repeat-y","repeat"]
*/
SetPicModel:function (strModel) {
},
/**
* 获取背景图绘制模式
* @return {String}
*/
GetPicModel:function () {
},
/**
* 进度条最外层颜色
* @param {String} strBeginColor 开始颜色
* @param {String} strEndColor 结束颜色
* @property {Collection} ProgressBarOutsideColor ["0x00000000","0xff00eda7"]
*/
SetProgressBarOutsideColor:function (strBeginColor,strEndColor) {
},
/**
* 获取进度条的最外层颜色
* @return {Array}
*/
GetProgressBarOutsideColor:function () {
},
/**
* 进度条中间部分颜色
* @param {String} strBeginColor 开始颜色
* @param {String} strEndColor 结束颜色
* @property {Collection} ProgressBarMiddleColor ["0x00000000","0xff00eda7"]
*/
SetProgressBarMiddleColor:function (strBeginColor,strEndColor) {
},
/**
* 获取进度条中间部分颜色
* @return {Array}
*/
GetProgressBarMiddleColor:function () {
},
/**
* 进度条底部前景色
* @param {String} strBeginColor 开始颜色
* @param {String} strEndColor 结束颜色
* @property {Collection} ProgressBarForegroundColor ["0xff00eda7","0xff00eda7"]
*/
SetProgressBarForegroundColor:function (strBeginColor,strEndColor) {
},
/**
* 获取进度条底部颜色
* @return {Array}
*/
GetProgressBarForegroundColor:function () {
},
/**
* 进度条底部背景色
* @param {String} strColor 进度条底部的背景色
* @property {Color} ProgressBarBgColor "0xff082e30"
*/
SetProgressBarBgColor:function (strColor) {
},
/**
* 内层圆环颜色
* @param {String} strCircleColor 内层圆环颜色
* @property {Color} InsideRoundColor "0xff054244"
*/
SetInsideRoundColor:function (strCircleColor) {
},
/**
* 获取内层圆环颜色
* @return {Array}
*/
GetInsideRoundColor:function () {
},
/**
* 内环整圆的宽度
* @param {Number} nWidth 内环整圆的宽度
*/
SetInsideRoundWidth:function (nWidth) {
},
/**
* 获取内环整圆的宽度
* @return {Number}
*/
GetInsideRoundWidth:function () {
},
/**
* 刻度圈颜色
* @param {String} strColor 最外层刻度环的颜色
* @property {Color} ScaleRoundColor "0xff054244"
*/
SetScaleRoundColor:function (strColor) {
},
/**
* 获取最外层刻度环的颜色
* @return {String}
*/
GetScaleRoundColor:function () {
},
/**
* 刻度圈宽度
* @param {Number} nWidth 最外层刻度环的宽度
* @property {Number} ScaleRoundWidth 2
*/
SetScaleRoundWidth:function (nWidth) {
},
/**
* 获取最外层刻度环的宽度
* @return {Number}
*/
GetScaleRoundWidth:function () {
},
/**
* 刻度颜色
* @param {String} strColor 最外层刻度颜色
* @property {Color} ScaleLineColor "0xff054244"
*/
SetScaleLineColor:function (strColor) {
},
/**
* 刻度线颜色
* @return {String}
*/
GetScaleLineColor:function () {
},
/**
* 刻度长度
* @param {Number} nlength 刻度长度
* @property {Number} ScaleLineLength 4
*/
SetScaleLineLength:function (nlength) {
},
/**
* 获取刻度长度
* @return {Number}
*/
GetScaleLineLength:function () {
},
/**
* 刻度文本颜色
* @param {String} strColor 标签文本颜色
* @property {Color} ScaleFontColor "0xff054244"
*/
SetScaleFontColor:function (strColor) {
},
/**
* 获取标签文本颜色
* @return {String}
*/
GetScaleFontColor:function () {
},
/**
* 标签与刻度线间距
* @param {Number} nDistance 标签与刻度线间距
* @property {Number} ScaleFontDistance 2
*/
SetScaleFontDistance:function (nDistance) {
},
/**
* 获取标签与刻度线间距
* @return {Number}
*/
GetScaleFontDistance:function () {
},
/**
* 刻度文本大小
* @param {Number} nFontSize 刻度文本大小
* @property {Number} ScaleFontSize 14
*/
SetScaleFontSize:function (nFontSize) {
},
/**
* 获取刻度文本大小
* @return {Number}
*/
GetScaleFontSize:function () {
},
/**
* 刻度文本字体
* @param {String} strFontFamily 刻度文本字体
* @property {String} ScaleFontFamily "sans-serif"
*/
SetScaleFontFamily:function (strFontFamily) {
},
/**
* 获取刻度文本字体
* @return {String}
*/
GetScaleFontFamily:function () {
},
/**
* 图片路径
* @param {ImageProp} strPath 图片路径
* @property {ImageProp} IconPath "common_2dChart/XUIUtilizationDashboard/images/1.png"
*/
SetIconPath:function (strPath) {
},
/**
* 获取图片路径
* @return {String}
*/
GetIconPath:function () {
},
/**
* 图标位置
* @param {Array} arrImgPosition 图标位置
* @property {Array} ImgPosition ["0%","0%"]
*/
SetIconPos:function (arrImgPosition) {
},
/**
* 获取图标位置
* @return {Array}
*/
GetIconPos:function () {
},
/**
* 图片大小
* @param {Number} nWidth 宽度
* @param {Number} nHeight 高度
* @property {Collection} IconSize [20,20]
*/
SetIconSize:function (nWidth,nHeight) {
},
/**
* 获取图片大小
* @return {Array}
*/
GetIconSize:function () {
},
/**
* 标题文本内容
* @param {String} strText 标题文本内容
* @property {String} TitleText "进程CPU使用率"
*/
SetTitleText:function (strText) {
},
/**
* 获取标题文本内容
* @return {String}
*/
GetTitleText:function () {
},
/**
* 标题文本颜色
* @param {String} strColor 标题文本颜色
* @property {Color} TitleColor "0xffc4c6c7"
*/
SetTitleColor:function (strColor) {
},
/**
* 获取标题文本颜色
* @return {String}
*/
GetTitleColor:function () {
},
/**
* 标题文本位置
* @param {Array} arrTitlePosition 标题文本位置
* @property {Array} TitlePosition ["0%","110%"]
*/
SetTitlePosition:function (arrTitlePosition) {
},
/**
* 获取标题文本位置
* @return {Array}
*/
GetTitlePosition:function () {
},
/**
* 标题文本字体
* @param {String} strTitleFontFamily 标题文本字体
* @property {String} TitleFontFamily "sans-serif"
*/
SetTitleFontFamily:function (strTitleFontFamily) {
},
/**
* 获取标题文本字体
* @return {String}
*/
GetTitleFontFamily:function () {
},
/**
* 标题文本大小
* @param {Number} nSize 标题文本大小
* @property {Number} TitleFontSize 16
*/
SetTitleFontSize:function (nSize) {
},
/**
* 获取标题文本大小
* @return {Number}
*/
GetTitleFontSize:function () {
},
/**
* 当前值字体大小
* @param {Number} nSize 显示文本的大小
* @property {Number} CurValueFontSize 16
*/
SetCurValueFontSize:function (nSize) {
},
/**
* 获取显示文本的大小
* @return {Number}
*/
GetCurValueFontSize:function () {
},
/**
* 当前值颜色
* @param {String} strColor 显示文本的颜色
* @property {Color} CurValueFontColor "0xff054244"
*/
SetCurValueFontColor:function (strColor) {
},
/**
* 获取当前值颜色
* @return {String}
*/
GetCurValueFontColor:function () {
},
/**
* 当前值位置
* @param {Array} arrTextPosition 显示文本的位置
* @property {Array} CurValuePosition ["0%","90%"]
*/
SetCurValuePosition:function (arrTextPosition) {
},
/**
* 获取当前值位置
* @return {Array}
*/
GetCurValuePosition:function () {
},
/**
* 当前值字体
* @param {String} strTextFontFamily 显示文本的字体
* @property {String} CurValueFontFamily "sans-serif"
*/
SetCurValueFontFamily:function (strTextFontFamily) {
},
/**
* 获取当前值字体
* @return {String}
*/
GetCurValueFontFamily:function () {
},
/**
* 当前值
* @param {Float} fValue 显示文本的值
* @property {Float} CurValue 30
*/
SetCurValue:function (fValue) {
},
/**
* 获取当前值
* @return {Number}
*/
GetCurValue:function () {
},
/**
* 取值的最大值
* @param {Float} fMax 取值的最大值
* @property {Float} MaxValue 100
*/
SetMaxValue:function (fMax) {
},
/**
* 获取取值的最大值
* @return {Number}
*/
GetMaxValue:function () {
},
/**
* 仪表盘的始末角度
* @param {Number} nStartAngle 仪表盘的起始角度
* @param {Number} nEndAngle 仪表盘的结束角度
* @property {Collection} Angle [225,-45]
*/
SetAngle:function (nStartAngle,nEndAngle) {
},
/**
* 获取仪表盘的起始角度
* @return {Number}
*/
GetStartAngle:function () {
},
/**
* 仪表盘的结束角度
* @return {Number}
*/
GetEndAngle:function () {
},
/**
* 仪表盘的大小
* @param {Number} nGaugeSize 仪表盘的大小
* @property {Number} GaugeSize 80
*/
SetGaugeSize:function (nGaugeSize) {
},
/**
* 获取仪表盘的大小
* @return {Number}
*/
GetGaugeSize:function () {
},
/**
* 外圈刻度和进度条间距
* @param {Number} nGap 外圈刻度和进度条间距
* @property {Number} ScaleRoundBetweenProgress 12
*/
SetScaleRoundBetweenProgress:function (nGap) {
},
/**
* 获取外圈刻度和进度条间距
* @return {Number}
*/
GetScaleRoundBetweenProgress:function () {
},
/**
* 进度条最外层和中间部分的间距
* @param {Number} nGap 进度条最外层和中间部分的间距
* @property {Number} ProgressOutsideBetweenMiddle 1
*/
SetProgressOutsideBetweenMiddle:function (nGap) {
},
/**
* 获取进度条最外层和中间部分的间距
* @return {Number}
*/
GetProgressOutsideBetweenMiddle:function () {
},
/**
* 进度条中间部分和底部的间距
* @param {Number} nGap 进度条中间部分和底部的间距
* @property {Number} ProgressMiddleBetweenInside 11
*/
SetProgressMiddleBetweenInside:function (nGap) {
},
/**
* 获取进度条中间部分和底部的间距
* @return {Number}
*/
GetProgressMiddleBetweenInside:function () {
},
/**
* 进度条和最内圈环的间距
* @param {Number} nGap 进度条和最内圈环的间距
* @property {Number} ProgressBetweenInsideRound 6
*/
SetProgressBetweenInsideRound:function (nGap) {
},
/**
* 获取进度条和最内圈环的间距
* @return {Number}
*/
GetProgressBetweenInsideRound:function () {
},
/**
* 获取进度条底部底色
* @return {Array}
*/
GetProgressBarBgColor:function () {
},
/**
* 进度条顶部的宽度
* @param {Number} nWidth 进度条顶部的宽度
*/
SetProgressOutSideWidth:function (nWidth) {
},
/**
* 获取进度条顶部的宽度
* @return {Number}
*/
GetProgressOutSideWidth:function () {
},
/**
* 进度条底部的宽度
* @param {Number} nWidth 进度条底部的宽度
*/
SetProgressBgWidth:function (nWidth) {
},
/**
* 获取进度条底部的宽度
* @return {Number}
*/
GetProgressBgWidth:function () {
},
/**
* 进度条中部的宽度
* @param {Number} nProgressWidth2 进度条中部的宽度
*/
SetProgressMiddleWidth:function (nProgressWidth2) {
},
/**
* 获取进度条中部的宽度
* @return {Number}
*/
GetProgressMiddleWidth:function () {
},
}