new XUIChangeColorRingProgressBar()
Methods
-
GetBgColor() → {String}
-
获取背景颜色
Returns:
String -
GetBgImg() → {String}
-
获取背景图
Returns:
String -
GetBgImgRepeat() → {String}
-
获取背景图绘制模式
Returns:
String -
GetData() → {Number}
-
获得数据
Returns:
Number -
GetDataRingColor() → {Array}
-
获得数据环颜色
Returns:
Array -
GetDataTextColor() → {String}
-
获得数据文本颜色
Returns:
String -
GetDataTextSize() → {Number}
-
获得数据文本大小
Returns:
Number -
GetDataTextUnit() → {String}
-
获得数据文本单位
Returns:
String -
GetDataToFixed() → {Number}
-
获得数据保留小数
Returns:
Number -
GetRingSize() → {Array}
-
获得环的大小
Returns:
Array -
GetTextPosition() → {Array}
-
获得文字位置
Returns:
Array -
IsDrawBgColor() → {Boolean}
-
获取是否绘制图标背景色
Returns:
Boolean -
IsShowDataText() → {Boolean}
-
是否显示文本
Returns:
Boolean -
SetBgColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description BgColor
Color "0x00000000" -
SetBgImg(strImg)
-
背景图
Parameters:
Name Type Description strImg
ImageProp 图片 Properties:
Name Type Description BgImg
ImageProp "" -
SetBgImgRepeat(strMode)
-
背景图绘制模式
Parameters:
Name Type Description strMode
String 图片 Properties:
Name Type Description BgImgRepeat
Combo ["repeat","no-repeat","repeat-x","repeat-y"] -
SetData(nData)
-
数据
Parameters:
Name Type Description nData
Number 数据 Properties:
Name Type Description Data
Number 25 -
SetDataRingColor(strStartColor, strEndColor)
-
数据环颜色
Parameters:
Name Type Description strStartColor
String 起始颜色 strEndColor
String 结束颜色 Properties:
Name Type Description DataRingColor
Collection ["0xff00ffff","0xff0000ff"] -
SetDataTextColor(strColor)
-
数据文本颜色
Parameters:
Name Type Description strColor
String 文本颜色 Properties:
Name Type Description DataTextColor
Color "0xff000000" -
SetDataTextSize(nSize)
-
数据文本大小
Parameters:
Name Type Description nSize
Number 文本大小 Properties:
Name Type Description DataTextSize
Number 38 -
SetDataTextUnit(strUnit)
-
数据文本单位
Parameters:
Name Type Description strUnit
String 单位 Properties:
Name Type Description DataTextUnit
String "" -
SetDataToFixed(nDigit)
-
数据保留小数
Parameters:
Name Type Description nDigit
Number 位数 Properties:
Name Type Description DataToFixed
Number 0 -
SetDrawBgColor(bDraw)
-
是否绘制图标背景色
Parameters:
Name Type Description bDraw
Boolean true背景色,false背景图 Properties:
Name Type Description DrawBgColor
Boolean true -
SetRingSize(nInnerSize, nOuterSize)
-
环的大小
Parameters:
Name Type Description nInnerSize
Number 内环半径 nOuterSize
Number 外环半径 Properties:
Name Type Description RingSize
Collection [120,200] -
SetShowDataText(bShow)
-
显示文本
Parameters:
Name Type Description bShow
Boolean true显示false隐藏 Properties:
Name Type Description ShowDataText
Boolean true -
SetTextPosition(nPosX, nPosY)
-
文字位置
Parameters:
Name Type Description nPosX
Number X方向 nPosY
Number Y方向 Properties:
Name Type Description TextPosition
Collection [0,0]