XUIUtilizationDashboard()

Methods

GetBgColor() → {String}

获取背景颜色
Returns:
String

GetBgImage() → {String}

获取背景图片
Returns:
String

GetCurValue() → {Number}

获取当前值
Returns:
Number

GetCurValueFontColor() → {String}

获取当前值颜色
Returns:
String

GetCurValueFontFamily() → {String}

获取当前值字体
Returns:
String

GetCurValueFontSize() → {Number}

获取显示文本的大小
Returns:
Number

GetCurValuePosition() → {Array}

获取当前值位置
Returns:
Array

GetEndAngle() → {Number}

仪表盘的结束角度
Returns:
Number

GetGaugeSize() → {Number}

获取仪表盘的大小
Returns:
Number

GetIconPath() → {String}

获取图片路径
Returns:
String

GetIconPos() → {Array}

获取图标位置
Returns:
Array

GetIconSize() → {Array}

获取图片大小
Returns:
Array

GetInsideRoundColor() → {Array}

获取内层圆环颜色
Returns:
Array

GetInsideRoundWidth() → {Number}

获取内环整圆的宽度
Returns:
Number

GetMaxValue() → {Number}

获取取值的最大值
Returns:
Number

GetPicModel() → {String}

获取背景图绘制模式
Returns:
String

GetProgressBarBgColor() → {Array}

获取进度条底部底色
Returns:
Array

GetProgressBarForegroundColor() → {Array}

获取进度条底部颜色
Returns:
Array

GetProgressBarMiddleColor() → {Array}

获取进度条中间部分颜色
Returns:
Array

GetProgressBarOutsideColor() → {Array}

获取进度条的最外层颜色
Returns:
Array

GetProgressBetweenInsideRound() → {Number}

获取进度条和最内圈环的间距
Returns:
Number

GetProgressBgWidth() → {Number}

获取进度条底部的宽度
Returns:
Number

GetProgressMiddleBetweenInside() → {Number}

获取进度条中间部分和底部的间距
Returns:
Number

GetProgressMiddleWidth() → {Number}

获取进度条中部的宽度
Returns:
Number

GetProgressOutsideBetweenMiddle() → {Number}

获取进度条最外层和中间部分的间距
Returns:
Number

GetProgressOutSideWidth() → {Number}

获取进度条顶部的宽度
Returns:
Number

GetScaleFontColor() → {String}

获取标签文本颜色
Returns:
String

GetScaleFontDistance() → {Number}

获取标签与刻度线间距
Returns:
Number

GetScaleFontFamily() → {String}

获取刻度文本字体
Returns:
String

GetScaleFontSize() → {Number}

获取刻度文本大小
Returns:
Number

GetScaleLineColor() → {String}

刻度线颜色
Returns:
String

GetScaleLineLength() → {Number}

获取刻度长度
Returns:
Number

GetScaleRoundBetweenProgress() → {Number}

获取外圈刻度和进度条间距
Returns:
Number

GetScaleRoundColor() → {String}

获取最外层刻度环的颜色
Returns:
String

GetScaleRoundWidth() → {Number}

获取最外层刻度环的宽度
Returns:
Number

GetStartAngle() → {Number}

获取仪表盘的起始角度
Returns:
Number

GetTitleColor() → {String}

获取标题文本颜色
Returns:
String

GetTitleFontFamily() → {String}

获取标题文本字体
Returns:
String

GetTitleFontSize() → {Number}

获取标题文本大小
Returns:
Number

GetTitlePosition() → {Array}

获取标题文本位置
Returns:
Array

GetTitleText() → {String}

获取标题文本内容
Returns:
String

IsBgDrawColor() → {Boolean}

获取背景颜色绘制
Returns:
Boolean

SetAngle(nStartAngle, nEndAngle)

仪表盘的始末角度
Parameters:
Name Type Description
nStartAngle Number 仪表盘的起始角度
nEndAngle Number 仪表盘的结束角度
Properties:
Name Type Description
Angle Collection [225,-45]

SetBgColor(strColor)

背景颜色
Parameters:
Name Type Description
strColor String 控件的背景颜色
Properties:
Name Type Description
BgColor Color "0xff061432"

SetBgDrawColor(bDrawColor)

背景颜色绘制
Parameters:
Name Type Description
bDrawColor Boolean
Properties:
Name Type Description
BgDrawColor Boolean true

SetBgImage(strImage)

背景图片
Parameters:
Name Type Description
strImage ImageProp 图片地址
Properties:
Name Type Description
BgImage ImageProp ""

SetCurValue(fValue)

当前值
Parameters:
Name Type Description
fValue Float 显示文本的值
Properties:
Name Type Description
CurValue Float 30

SetCurValueFontColor(strColor)

当前值颜色
Parameters:
Name Type Description
strColor String 显示文本的颜色
Properties:
Name Type Description
CurValueFontColor Color "0xff054244"

SetCurValueFontFamily(strTextFontFamily)

当前值字体
Parameters:
Name Type Description
strTextFontFamily String 显示文本的字体
Properties:
Name Type Description
CurValueFontFamily String "sans-serif"

SetCurValueFontSize(nSize)

当前值字体大小
Parameters:
Name Type Description
nSize Number 显示文本的大小
Properties:
Name Type Description
CurValueFontSize Number 16

SetCurValuePosition(arrTextPosition)

当前值位置
Parameters:
Name Type Description
arrTextPosition Array 显示文本的位置
Properties:
Name Type Description
CurValuePosition Array ["0%","90%"]

SetGaugeSize(nGaugeSize)

仪表盘的大小
Parameters:
Name Type Description
nGaugeSize Number 仪表盘的大小
Properties:
Name Type Description
GaugeSize Number 80

SetIconPath(strPath)

图片路径
Parameters:
Name Type Description
strPath ImageProp 图片路径
Properties:
Name Type Description
IconPath ImageProp "common_2dChart/XUIUtilizationDashboard/images/1.png"

SetIconPos(arrImgPosition)

图标位置
Parameters:
Name Type Description
arrImgPosition Array 图标位置
Properties:
Name Type Description
ImgPosition Array ["0%","0%"]

SetIconSize(nWidth, nHeight)

图片大小
Parameters:
Name Type Description
nWidth Number 宽度
nHeight Number 高度
Properties:
Name Type Description
IconSize Collection [20,20]

SetInsideRoundColor(strCircleColor)

内层圆环颜色
Parameters:
Name Type Description
strCircleColor String 内层圆环颜色
Properties:
Name Type Description
InsideRoundColor Color "0xff054244"

SetInsideRoundWidth(nWidth)

内环整圆的宽度
Parameters:
Name Type Description
nWidth Number 内环整圆的宽度

SetMaxValue(fMax)

取值的最大值
Parameters:
Name Type Description
fMax Float 取值的最大值
Properties:
Name Type Description
MaxValue Float 100

SetPicModel(strModel)

背景图绘制模式
Parameters:
Name Type Description
strModel String 绘制模式
Properties:
Name Type Description
PicModel Combo ["no-repeat","repeat-x","repeat-y","repeat"]

SetProgressBarBgColor(strColor)

进度条底部背景色
Parameters:
Name Type Description
strColor String 进度条底部的背景色
Properties:
Name Type Description
ProgressBarBgColor Color "0xff082e30"

SetProgressBarForegroundColor(strBeginColor, strEndColor)

进度条底部前景色
Parameters:
Name Type Description
strBeginColor String 开始颜色
strEndColor String 结束颜色
Properties:
Name Type Description
ProgressBarForegroundColor Collection ["0xff00eda7","0xff00eda7"]

SetProgressBarMiddleColor(strBeginColor, strEndColor)

进度条中间部分颜色
Parameters:
Name Type Description
strBeginColor String 开始颜色
strEndColor String 结束颜色
Properties:
Name Type Description
ProgressBarMiddleColor Collection ["0x00000000","0xff00eda7"]

SetProgressBarOutsideColor(strBeginColor, strEndColor)

进度条最外层颜色
Parameters:
Name Type Description
strBeginColor String 开始颜色
strEndColor String 结束颜色
Properties:
Name Type Description
ProgressBarOutsideColor Collection ["0x00000000","0xff00eda7"]

SetProgressBetweenInsideRound(nGap)

进度条和最内圈环的间距
Parameters:
Name Type Description
nGap Number 进度条和最内圈环的间距
Properties:
Name Type Description
ProgressBetweenInsideRound Number 6

SetProgressBgWidth(nWidth)

进度条底部的宽度
Parameters:
Name Type Description
nWidth Number 进度条底部的宽度

SetProgressMiddleBetweenInside(nGap)

进度条中间部分和底部的间距
Parameters:
Name Type Description
nGap Number 进度条中间部分和底部的间距
Properties:
Name Type Description
ProgressMiddleBetweenInside Number 11

SetProgressMiddleWidth(nProgressWidth2)

进度条中部的宽度
Parameters:
Name Type Description
nProgressWidth2 Number 进度条中部的宽度

SetProgressOutsideBetweenMiddle(nGap)

进度条最外层和中间部分的间距
Parameters:
Name Type Description
nGap Number 进度条最外层和中间部分的间距
Properties:
Name Type Description
ProgressOutsideBetweenMiddle Number 1

SetProgressOutSideWidth(nWidth)

进度条顶部的宽度
Parameters:
Name Type Description
nWidth Number 进度条顶部的宽度

SetScaleFontColor(strColor)

刻度文本颜色
Parameters:
Name Type Description
strColor String 标签文本颜色
Properties:
Name Type Description
ScaleFontColor Color "0xff054244"

SetScaleFontDistance(nDistance)

标签与刻度线间距
Parameters:
Name Type Description
nDistance Number 标签与刻度线间距
Properties:
Name Type Description
ScaleFontDistance Number 2

SetScaleFontFamily(strFontFamily)

刻度文本字体
Parameters:
Name Type Description
strFontFamily String 刻度文本字体
Properties:
Name Type Description
ScaleFontFamily String "sans-serif"

SetScaleFontSize(nFontSize)

刻度文本大小
Parameters:
Name Type Description
nFontSize Number 刻度文本大小
Properties:
Name Type Description
ScaleFontSize Number 14

SetScaleLineColor(strColor)

刻度颜色
Parameters:
Name Type Description
strColor String 最外层刻度颜色
Properties:
Name Type Description
ScaleLineColor Color "0xff054244"

SetScaleLineLength(nlength)

刻度长度
Parameters:
Name Type Description
nlength Number 刻度长度
Properties:
Name Type Description
ScaleLineLength Number 4

SetScaleRoundBetweenProgress(nGap)

外圈刻度和进度条间距
Parameters:
Name Type Description
nGap Number 外圈刻度和进度条间距
Properties:
Name Type Description
ScaleRoundBetweenProgress Number 12

SetScaleRoundColor(strColor)

刻度圈颜色
Parameters:
Name Type Description
strColor String 最外层刻度环的颜色
Properties:
Name Type Description
ScaleRoundColor Color "0xff054244"

SetScaleRoundWidth(nWidth)

刻度圈宽度
Parameters:
Name Type Description
nWidth Number 最外层刻度环的宽度
Properties:
Name Type Description
ScaleRoundWidth Number 2

SetTitleColor(strColor)

标题文本颜色
Parameters:
Name Type Description
strColor String 标题文本颜色
Properties:
Name Type Description
TitleColor Color "0xffc4c6c7"

SetTitleFontFamily(strTitleFontFamily)

标题文本字体
Parameters:
Name Type Description
strTitleFontFamily String 标题文本字体
Properties:
Name Type Description
TitleFontFamily String "sans-serif"

SetTitleFontSize(nSize)

标题文本大小
Parameters:
Name Type Description
nSize Number 标题文本大小
Properties:
Name Type Description
TitleFontSize Number 16

SetTitlePosition(arrTitlePosition)

标题文本位置
Parameters:
Name Type Description
arrTitlePosition Array 标题文本位置
Properties:
Name Type Description
TitlePosition Array ["0%","110%"]

SetTitleText(strText)

标题文本内容
Parameters:
Name Type Description
strText String 标题文本内容
Properties:
Name Type Description
TitleText String "进程CPU使用率"