XUIDashBoardHalf()

Methods

SetBackgroundColor(strColor)

背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
BgColor Color "0xff0000ff"

SetCurrentValue(nData)

当前值
Parameters:
Name Type Description
nData Number 数值
Properties:
Name Type Description
Data Number 50

SetCurrentValueFontColor(strColor)

当前值文本颜色
Parameters:
Name Type Description
strColor String 文本颜色
Properties:
Name Type Description
CurrentValueFontColor Color "0xff4c4e57"

SetCurrentValueFontSize(nSize)

当前值文本大小
Parameters:
Name Type Description
nSize Number 文本大小
Properties:
Name Type Description
CurrentValueFontSize Number 30

SetEndValueFontColor(strColor)

结束值文本颜色
Parameters:
Name Type Description
strColor String 文本颜色
Properties:
Name Type Description
EndValueFontColor Color "0xff4c4e57"

SetEndValueFontSize(nSize)

结束值文本大小
Parameters:
Name Type Description
nSize Number 文本大小
Properties:
Name Type Description
EndValueFontSize Number 20

SetInnerLineColor(strColor)

内层盘线颜色
Parameters:
Name Type Description
strColor String 线颜色
Properties:
Name Type Description
InnerLineColor Color "0xffDCDFE5"

SetInnerTickMarkColor(strColor)

内层盘刻度颜色
Parameters:
Name Type Description
strColor String 刻度颜色
Properties:
Name Type Description
InnerTickColor Color "0xffDCDFE5"

SetInnerTickMarkLength(nLength)

内层盘刻度线长
Parameters:
Name Type Description
nLength Number 刻度线长
Properties:
Name Type Description
InnerTickLength Number 5

SetPointerColor(strColor)

指针颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
PointerColor Color "0xffFFCD41"

SetPointerSize(nWidth, nLength)

指针宽度长度
Parameters:
Name Type Description
nWidth Number 宽度
nLength Number 长度
Properties:
Name Type Description
PointerSize Collection [4, 100]

SetProgressBgColor(strColor)

仪表盘进度条底色
Parameters:
Name Type Description
strColor String 进度条底色
Properties:
Name Type Description
ProgressBgColor Color "0xff111d3a"

SetProgressColor(strColor)

进度条颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
ProgressColor Color "0xff4582ff"

SetProgressSize(nSize)

仪表盘进度条宽
Parameters:
Name Type Description
nSize Number 进度条宽
Properties:
Name Type Description
ProgressSize Number 3

SetStartValueFontColor(strColor)

起始值文本颜色
Parameters:
Name Type Description
strColor String 文本颜色
Properties:
Name Type Description
StartDataColor Color "0xff4c4e57"

SetStartValueFontSize(nSize)

起始值文本大小
Parameters:
Name Type Description
nSize Number 文本大小
Properties:
Name Type Description
StartValueFontSize Number 20

SetTitle(strTitle)

标题文字
Parameters:
Name Type Description
strTitle String 标题文字
Properties:
Name Type Description
Title String "示例数据"

SetTitleFontColor(strColor)

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

SetTitleFontSize(nSize)

标题文字大小
Parameters:
Name Type Description
nSize Number 文字大小
Properties:
Name Type Description
TitleSize Number 24

SetTitlePos(strXPos, strYPos)

标题文字位置
Parameters:
Name Type Description
strXPos String x轴的位置
strYPos String y轴的位置
Properties:
Name Type Description
TitlePos Collection ["3%","2%"]

SetValueRange(nStartData, nEndData)

数据范围
Parameters:
Name Type Description
nStartData Number 起点值
nEndData Number 终点值
Properties:
Name Type Description
ValueRange Collection [0,100]