XUIProgressBar()

Methods

GetBeginTipText() → {String}

获取起点提示文本
Returns:
String - 示例文本

GetCurrentValue() → {Number}

获取当前数据值
Returns:
Number - 数据值

GetEndTipText() → {String}

获取终点提示文本
Returns:
String - 示例文本

SetBeginTipPos(strRight, strTop)

起点提示文本位置
Parameters:
Name Type Description
strRight String 右侧百分比
strTop String 上侧百分比
Properties:
Name Type Description
LabelPos1 Collection ["67%","55%"]

SetBgColor(strColor)

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

SetCurrentValue(nValue)

当前数据值
Parameters:
Name Type Description
nValue Number 数据值
Properties:
Name Type Description
ValueData Number 50

SetCurrentValueColor(strColor)

当前值颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
CurrentValueColor Color "0xff00ffb0"

SetCurrentValueFontSize(nSize)

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

SetCurrentValuePos(strRight, strBottom)

当前数据文本位置
Parameters:
Name Type Description
strRight String 右侧百分比
strBottom String 下侧百分比
Properties:
Name Type Description
DataLabelPos Collection ["48%","30%"]

SetEndTipPos(strRight, strBottom)

终点提示文本位置
Parameters:
Name Type Description
strRight String 右侧百分比
strBottom String 下侧百分比
Properties:
Name Type Description
LabelPos2 Collection ["52%","10%"]

SetIconImage(strImg)

图标
Parameters:
Name Type Description
strImg ImageProp 图标路径
Properties:
Name Type Description
IconImage ImageProp "common_2dChart/XUIProgressBar/images/icon_riqi.png"

SetIconSize(nWidth, nHeight)

图标宽高
Parameters:
Name Type Description
nWidth Number
nHeight Number
Properties:
Name Type Description
IconSize Collection [26,28]

SetMaxAndMinValueFontSize(nSize)

最大值最小值文本大小
Parameters:
Name Type Description
nSize Number 数据值
Properties:
Name Type Description
ValueFontSize Number 16

SetMaxValuePos(strLeft, strBottom)

最大值文本位置
Parameters:
Name Type Description
strLeft String 左侧百分比
strBottom String 下侧百分比
Properties:
Name Type Description
MaxValuePos Collection ["50%","1%"]

SetMinAndMaxColor(strColor)

最大值和最小值颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
MinAndMaxColor Color "0xff8394c1"

SetMinValuePos(strRight, strTop)

最小值文本位置
Parameters:
Name Type Description
strRight String 右侧百分比
strTop String 上侧百分比
Properties:
Name Type Description
MinValuePos Collection ["80%","42%"]

SetOuterRingColor(strColor)

外圈颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
OuterRingColor Color "0xff152447"

SetOuterRingScaleColor(strColor)

外圈刻度颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
OuterRingScaleColor Color "0xff223e7a"

SetRingBgColor(strColor)

圆环背景色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
RingBgColor Color "0xff111736"

SetRoundRadius(nRadius)

半径
Parameters:
Name Type Description
nRadius Number 半径
Properties:
Name Type Description
RoundRadius Number 75

SetScaleMarkLength(nLength)

刻度线长度
Parameters:
Name Type Description
nLength Number 刻度线长度
Properties:
Name Type Description
ScaleMarkLength Number 5

SetSecondOuterRingColor(strColor)

第二个外圈颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
SecondOuterRingColor Color "0xff3a6dd6"

SetStartAndEndAngle(nStartAngle, nEndAngle)

进度条起始结束角度
Parameters:
Name Type Description
nStartAngle Number 起始角度
nEndAngle Number 结束角度
Properties:
Name Type Description
StartAngle Collection [180,-90]

SetThirdOuterRingColor(strColor)

第三个外圈颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
ThirdOuterRingColor Color "0xff203a72"

SetTipColor(strColor)

提示文本颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
LabelColor Color "0xff8394c1"

SetTipFontSize(nSize)

提示文本大小
Parameters:
Name Type Description
nSize Number 数据值
Properties:
Name Type Description
TipFontSize Number 16

SetTipText(strBeginTip, strEndTip)

提示文本
Parameters:
Name Type Description
strBeginTip String 起点提示文本
strEndTip String 终点提示文本
Properties:
Name Type Description
TipText Collection ["起点提示文本","终点提示文本"]

SetValueRange(nMin, nMax)

刻度最小值和最大值
Parameters:
Name Type Description
nMin Number 最小值
nMax Number 最大值
Properties:
Name Type Description
ValueRange Collection [0,200]