XUIPieDashboard()

Methods

GetBgColor() → {String}

获取背景颜色
Returns:
String

GetBgImage() → {String}

获取背景图
Returns:
String

GetBgRoundColor() → {String}

获取背景圆颜色
Returns:
String

GetBgRoundWidth() → {Number}

获取圆环宽度
Returns:
Number

GetDataColor() → {String}

获取中间数据的颜色
Returns:
String

GetDataFontFamily() → {String}

获取中间数据字体
Returns:
String

GetDataFontHeight() → {Number}

获取中间数据高度
Returns:
Number

GetDataFontSize() → {Number}

获取中间数据大小
Returns:
Number

GetDataFontWeight() → {String}

获取中间数据粗细
Returns:
String

GetDataUnit() → {String}

获取数据单位
Returns:
String

GetDataUnitColor() → {String}

获取中间数据单位的颜色
Returns:
String

GetDataUnitFontFamily() → {String}

获取中间数据单位字体
Returns:
String

GetDataUnitFontSize() → {Number}

获取中间数据单位大小
Returns:
Number

GetDataUnitFontWeight() → {String}

获取中间数据单位粗细
Returns:
String

GetDataUnitPadding() → {Number}

获取中间数据单位垂直距离
Returns:
Number

GetIconPath() → {String}

获取控件中心图
Returns:
String

GetIconSize() → {Number}

获取控件中心图大小
Returns:
Number

GetPicModel() → {String}

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

GetProgressBgColor() → {String}

获取进度条背景颜色
Returns:
String

GetProgressBgWidth() → {Number}

获取进度条背景宽度
Returns:
Number

GetProgressForegroundColor() → {String}

获取宽进度条前景色
Returns:
String

GetProgressForegroundWidth() → {Number}

获取进度条前景宽度
Returns:
Number

GetSize() → {Number}

获取控件的大小
Returns:
Number

GetText() → {String}

获取中间文本内容
Returns:
String

GetTextColor() → {String}

获取中间文本的颜色
Returns:
String

GetTextFontFamily() → {String}

获取中间文本字体
Returns:
String

GetTextFontWeight() → {String}

获取中间文本粗细
Returns:
String

GetTextHeight() → {Number}

获取中间文本高度
Returns:
Number

GetTextSize() → {Number}

获取中间文本的大小
Returns:
Number

IsClockwise() → {Boolean}

获取进度条绘制方向
Returns:
Boolean

SetBgColor(strColor)

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

SetBgImage(strImage)

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

SetBgRoundColor(strColor)

背景圆景色
Parameters:
Name Type Description
strColor String 进度条背景色
Properties:
Name Type Description
BgRoundColor Color "0xff08282c"

SetBgRoundWidth(nWidth)

圆环宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
BgRoundWidth Number 5

SetClockwise(bClockwise)

修改进度条绘制方向
Parameters:
Name Type Description
bClockwise Boolean
Properties:
Name Type Description
Clockwise Boolean false

SetCurData(fCurValue)

当前值
Parameters:
Name Type Description
fCurValue Float 当前值
Properties:
Name Type Description
CurData Float 52

SetData(fCurValue, fTotal)

数据范围
Parameters:
Name Type Description
fCurValue Float 当前值
fTotal Float 总值

SetDataColor(strColor)

中间数据的颜色
Parameters:
Name Type Description
strColor String 中间数据的颜色
Properties:
Name Type Description
DataColor Color "0xff03bcb9"

SetDataFontFamily(strFontFamily)

中间数据字体
Parameters:
Name Type Description
strFontFamily String 中间数据字体
Properties:
Name Type Description
DataFontFamily String "sans-serif"

SetDataFontHeight(nFontHeight)

修改中间数据上下间距
Parameters:
Name Type Description
nFontHeight Number 中间数据高度
Properties:
Name Type Description
DataFontHeight Number 30

SetDataFontSize(nFontSize)

中间数据大小
Parameters:
Name Type Description
nFontSize Number 中间数据大小
Properties:
Name Type Description
DataFontSize Number 30

SetDataFontWeight(strFontWeight)

中间数据粗细
Parameters:
Name Type Description
strFontWeight String 中间数据粗细
Properties:
Name Type Description
DataFontWeight Combo ["normal","bold","bolder","lighter"]

SetDataUnit(strDataUnit)

修改数据单位
Parameters:
Name Type Description
strDataUnit String 数据单位
Properties:
Name Type Description
DataUnit String "GB"

SetDataUnitColor(strColor)

中间数据单位的颜色
Parameters:
Name Type Description
strColor String 中间数据单位的颜色
Properties:
Name Type Description
DataUnitColor Color "0xff03bcb9"

SetDataUnitFontFamily(strFontFamily)

中间数据单位字体
Parameters:
Name Type Description
strFontFamily String 中间数据单位字体
Properties:
Name Type Description
DataUnitFontFamily String "sans-serif"

SetDataUnitFontSize(nFontSize)

中间数据单位大小
Parameters:
Name Type Description
nFontSize Number 中间数据单位大小
Properties:
Name Type Description
DataUnitFontSize Number 20

SetDataUnitFontWeight(strFontWeight)

中间数据单位粗细
Parameters:
Name Type Description
strFontWeight String 中间数据单位粗细
Properties:
Name Type Description
DataUnitFontWeight Combo ["normal","bold","bolder","lighter"]

SetDataUnitPadding(nPaddingBottom)

中间数据单位垂直距离
Parameters:
Name Type Description
nPaddingBottom Number 中间数据单位垂直距离
Properties:
Name Type Description
DataUnitPadding Number 10

SetIconPath(strImage)

控件中心图
Parameters:
Name Type Description
strImage ImageProp 控件中心图

SetIconSize(nWidth, nHeight)

控件中心图大小
Parameters:
Name Type Description
nWidth Number 宽度
nHeight Number 高度
Properties:
Name Type Description
IconSize Collection [80,80]

SetMaxData(fTotal)

最大值
Parameters:
Name Type Description
fTotal Float 总值
Properties:
Name Type Description
MaxData Float 120

SetNowData(newData)

修改当前数据
Parameters:
Name Type Description
newData Number 当前内存占用值

SetPicModel(strModel)

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

SetProgressBgColor(strColor)

度条背景颜色
Parameters:
Name Type Description
strColor String 窄进度条颜色
Properties:
Name Type Description
ProgressBgColor Color "0xff008383"

SetProgressBgWidth(nWidth)

进度条背景宽度
Parameters:
Name Type Description
nWidth Number 背景宽度
Properties:
Name Type Description
ProgressBgWidth Number 5

SetProgressForegroundColor(strColor)

进度条前景色
Parameters:
Name Type Description
strColor String 前景色
Properties:
Name Type Description
ProgressForegroundColor Color "0xff00ffff"

SetProgressForegroundWidth(nWidth)

进度条前景宽度
Parameters:
Name Type Description
nWidth Number 宽进度条的宽度
Properties:
Name Type Description
ProgressForegroundWidth Number 8

SetSize(nSize)

控件的大小
Parameters:
Name Type Description
nSize Number 控件的大小
Properties:
Name Type Description
Size Number 60

SetText(strText)

中间文本内容
Parameters:
Name Type Description
strText String 中间文本内容
Properties:
Name Type Description
Text String "磁盘总容量"

SetTextColor(strColor)

中间文本的颜色
Parameters:
Name Type Description
strColor String 中间文本的颜色
Properties:
Name Type Description
TextColor Color "0xffffffff"

SetTextFontFamily(strFontFamily)

中间文本字体
Parameters:
Name Type Description
strFontFamily String 中间文本字体
Properties:
Name Type Description
TextFontFamily String "sans-serif"

SetTextFontWeight(strFontWeight)

中间文本粗细
Parameters:
Name Type Description
strFontWeight String 中间文本粗细
Properties:
Name Type Description
TextFontWeight Combo ["normal","bold","bolder","lighter"]

SetTextHeight(nTextHeight)

修改中间文本上下间距
Parameters:
Name Type Description
nTextHeight Number 中间文本高度
Properties:
Name Type Description
TextHeight Number 40

SetTextSize(nTextSize)

中间文本的大小
Parameters:
Name Type Description
nTextSize Number 中间文本的大小
Properties:
Name Type Description
TextSize Number 28