XUIBasicCircularProgressBar()

Methods

GetBackgroundColor() → {String}

获取背景色
Returns:
String

GetBackgroundImage() → {String}

获取背景图
Returns:
String

GetData() → {Number}

获取数据
Returns:
Number

GetDataTextColor() → {String}

获取数据文本颜色
Returns:
String

GetDataTextSize() → {Number}

获取数据文本大小
Returns:
Number

GetDataTextUntil() → {String}

获取数据文本单位
Returns:
String

GetDataTextUntilColor() → {String}

获取数据单位颜色
Returns:
String

GetDataTextUntilSize() → {Number}

获取数据单位大小
Returns:
Number

GetLoopBackgroundColor() → {String}

获取背景环颜色
Returns:
String

GetLoopColor() → {String}

获取前景环颜色
Returns:
String

GetLoopRadius() → {Array}

获取环的半径
Returns:
Array

GetPicModel() → {String}

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

GetPosition() → {Array}

获取图形位置
Returns:
Array

GetTitle() → {String}

获取文本
Returns:
String

GetTitleColor() → {String}

获取文本颜色
Returns:
String

GetTitlePositionHorizontal() → {String}

获取标题水平位置
Returns:
String

GetTitlePositionVertical() → {String}

获取文本垂直位置
Returns:
String

GetTitleSize() → {Number}

获取文本大小
Returns:
Number

IsDrawColor() → {Boolean}

获取背景颜色绘制
Returns:
Boolean

IsShowDataText() → {Boolean}

获取数据文本大小
Returns:
Boolean

IsShowTitle() → {Boolean}

获取是否显示文本
Returns:
Boolean

SetBackgroundColor(strColor)

背景色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
BackgroundColor Color "0xff000000"

SetBackgroundImage(strImage)

背景图
Parameters:
Name Type Description
strImage ImageProp 背景图
Properties:
Name Type Description
BackgroundImage ImageProp ""

SetData(nData)

数据
Parameters:
Name Type Description
nData Number 数据
Properties:
Name Type Description
Data Number 0

SetDataTextColor(strColor)

数据文本颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
DataText Color "0xffffffff"

SetDataTextSize(nSize)

数据文本大小
Parameters:
Name Type Description
nSize Number 文本大小
Properties:
Name Type Description
DataTextSize Number 50

SetDataTextUntil(strUntil)

数据文本单位
Parameters:
Name Type Description
strUntil String 文本单位
Properties:
Name Type Description
DataTextUntil String ""

SetDataTextUntilColor(strColor)

数据单位颜色
Parameters:
Name Type Description
strColor String 单位颜色
Properties:
Name Type Description
DataTextUntilColor Color "0xff00ff00"

SetDataTextUntilSize(nSize)

数据单位大小
Parameters:
Name Type Description
nSize Number 单位大小
Properties:
Name Type Description
DataTextUntilSize Number 25

SetDrawColor(bDrawColor)

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

SetLoopBackgroundColor(strColor)

背景环颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
LoopBackgroundColor Color "0xff19444a"

SetLoopColor(strColor)

前景环颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
LoopColor Color "0xff00ff00"

SetLoopRadius(nInnerSize, nOutSize)

环的半径
Parameters:
Name Type Description
nInnerSize Number 内部半径
nOutSize Number 外部半径
Properties:
Name Type Description
LoopRadius Collection [33,55]

SetPicModel(strModel)

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

SetPosition(nLeft, nTop)

图形位置
Parameters:
Name Type Description
nLeft Number 水平方向
nTop Number 垂直方向
Properties:
Name Type Description
Position Collection [50,50]

SetShowDataText(bShow)

是否显示数据文本
Parameters:
Name Type Description
bShow Boolean true显示,false隐藏
Properties:
Name Type Description
ShowDataText Boolean true

SetShowTitle(bShow)

是否显示文本
Parameters:
Name Type Description
bShow Boolean 是否显示
Properties:
Name Type Description
ShowTitle Boolean false

SetTitle(strTitle)

标题文本
Parameters:
Name Type Description
strTitle String 文本
Properties:
Name Type Description
Title String "0"

SetTitleColor(strColor)

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

SetTitlePositionHorizontal(nPos)

标题水平位置
Parameters:
Name Type Description
nPos String 水平方向
Properties:
Name Type Description
TitlePositionHorizontal Combo ["left","center","right"]

SetTitlePositionVertical(nPos)

文本垂直位置
Parameters:
Name Type Description
nPos String 垂直方向
Properties:
Name Type Description
TitlePositionVertical Combo ["top","center","bottom"]

SetTitleSize(nSize)

标题文本大小
Parameters:
Name Type Description
nSize Number 文本大小
Properties:
Name Type Description
TitleSize Number 50

UseAnimation(bUse)

使用动画
Parameters:
Name Type Description
bUse Boolean 是否使用动画
Properties:
Name Type Description
bUse Boolean true