new XUILateralProBar()
Methods
-
GetBiasColor() → {String}
-
获取纹理的颜色
Returns:
String -
GetBiasInterval() → {Number}
-
获取色块纹理间距
Returns:
Number -
GetGradientRamp() → {Array}
-
获取渐变色
Returns:
Array -
GetLabelPosition() → {Array}
-
获取当前数据文本框的位置
Returns:
Array -
GetLabelSize() → {Array}
-
获取当前数据文本框大小
Returns:
Array -
GetLabelTextColor() → {String}
-
获取当前数据字体颜色
Returns:
String -
GetLabelTextSize() → {Number}
-
获取当前数据字体的大小
Returns:
Number -
GetMarkPointLocat() → {Array}
-
获取标识位置
Returns:
Array -
GetMarkPointSize() → {Array}
-
获取标识的大小
Returns:
Array -
GetMaxData() → {Number}
-
获取最大值
Returns:
Number -
GetProgressColor() → {String}
-
获取进度条的颜色
Returns:
String -
GetProgressData() → {Double}
-
获取进度条的值
Returns:
Double -
GetProgressSize() → {Array}
-
获取进度条整体大小
Returns:
Array -
GetProHeight() → {Number}
-
获取进度色块的高度
Returns:
Number -
GetProPosition() → {Array}
-
获取进度色块的位置
Returns:
Array -
GetProssBgColor() → {String}
-
获取进度条的背景颜色
Returns:
String -
IsLabelBoardShow() → {Boolean}
-
文本边框是否显示
Returns:
Boolean -
IsLabelShow() → {Boolean}
-
是否显示当前数据
Returns:
Boolean -
IsProColorRasmp() → {Boolean}
-
是否设置进度的颜色为渐变
Returns:
Boolean -
IsShowBias() → {Boolean}
-
纹理是否显示
Returns:
Boolean -
IsShowMarkPoint() → {Boolean}
-
标识点是否显示
Returns:
Boolean -
SetBiasColor(strColor)
-
设置纹理的颜色
Parameters:
Name Type Description strColor
String 纹理颜色 Properties:
Name Type Description strBiasColor
Color "0xff000000" -
SetBiasInterval(nInter)
-
设置色块纹理间距
Parameters:
Name Type Description nInter
Number 间距 Properties:
Name Type Description niasInterval
Number 17 -
SetGradientRamp(strColor1, strColor2)
-
设置渐变色
Parameters:
Name Type Description strColor1
String 颜色1 strColor2
String 颜色2 Properties:
Name Type Description strGradientRamp
Collection ["0xff4385ff","0xff03e0ff"] -
SetLabelBoardShow(bShow)
-
设置文本边框不显示
Parameters:
Name Type Description bShow
Boolean true为显示false不显示 Properties:
Name Type Description bBoardShow
Boolean false -
SetLabelPosition(nXais, nYais)
-
设置当前数据文本框的位置
Parameters:
Name Type Description nXais
Number 左右位置 nYais
Number 上下位置 Properties:
Name Type Description colLabelPosition
Collection [10,10] -
SetLabelShow(bShow)
-
当前数据为不显示
Parameters:
Name Type Description bShow
Boolean true为显示false不显示 Properties:
Name Type Description bLabelShow
Boolean false -
SetLabelSize(nWidth, nHeight)
-
设置当前数据文本框的样式大小
Parameters:
Name Type Description nWidth
Number 宽度 nHeight
Number 高度 Properties:
Name Type Description coLabelSize
Collection [10,24] -
SetLabelTextColor(strColor)
-
设置当前数据的字体颜色
Parameters:
Name Type Description strColor
String 字体颜色 Properties:
Name Type Description LabelTextColor
Color "0xff8394c1" -
SetLabelTextSize(nSize)
-
设置当前数据的字体大小
Parameters:
Name Type Description nSize
Number 字体大小 Properties:
Name Type Description nLabelTextSize
Number 24 -
SetMarkPointLocat(nXais, nYais)
-
设置标识的位置
Parameters:
Name Type Description nXais
Number 左右位置 nYais
Number 上下位置 Properties:
Name Type Description MarkPointLocat
Collection [11,13] -
SetMarkPointShow(bShow)
-
设置标识点不显示
Parameters:
Name Type Description bShow
Boolean true为显示false不显示 Properties:
Name Type Description bMarkPoint
Boolean false -
SetMarkPointSize(nWidth, nHeight)
-
设置标识的大小
Parameters:
Name Type Description nWidth
Number 宽度 nHeight
Number 高度 Properties:
Name Type Description nMarkPointSize
Collection [15,15] -
SetMaxData(nMax)
-
设置最大值
Parameters:
Name Type Description nMax
Number 最大值 Properties:
Name Type Description nMaxData
Number 100 -
SetProColorRasmp(bRasmp)
-
设置条的颜色为渐变色
Parameters:
Name Type Description bRasmp
Boolean true为显示false不显示 Properties:
Name Type Description ProColorRasmp
Boolean false -
SetProgressColor(strColor)
-
设置进度条的颜色
Parameters:
Name Type Description strColor
String 进度条颜色 Properties:
Name Type Description strProgressColor
Color "0xffff0000" -
SetProgressData(dData)
-
设置进度条的值
Parameters:
Name Type Description dData
Double 进度条值 Properties:
Name Type Description dProgressData
Double 60.0 -
SetProgressSize(nWidth, nHeight)
-
设置进度条整体大小
Parameters:
Name Type Description nWidth
Number 宽度 nHeight
Number 高度 Properties:
Name Type Description nProgressSize
Collection [80,30] -
SetProHeight(nHeight)
-
设置进度色块的高度
Parameters:
Name Type Description nHeight
Number 色块高度 Properties:
Name Type Description ProHeight
Number 100 -
SetProPosition(nXais, nYais)
-
设置进度色块的位置
Parameters:
Name Type Description nXais
Number 进度色块左右位置 nYais
Number 进度色块上下位置 Properties:
Name Type Description nProPosition
Collection [0,0] -
SetProssBgColor(strColor)
-
设置进度条的背景颜色
Parameters:
Name Type Description strColor
String 进度条背景颜色 Properties:
Name Type Description strProssBgColor
Color "0xff10182d" -
SetShowBias(bShow)
-
设置纹理显示
Parameters:
Name Type Description bShow
Boolean true为显示false不显示 Properties:
Name Type Description bShowBias
Boolean true