new XUIRightProgressBarHalf()
Methods
-
SetAxisTickColor(strColor)
-
刻度线线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description AxisTickColor
Color "0xff4e5479" -
SetBarColor(strColor)
-
进度条颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description BarColor
Color "0xff4582ff" -
SetBgColor(strBgColor)
-
控件背景颜色
Parameters:
Name Type Description strBgColor
String 背景颜色 Properties:
Name Type Description BgColor
Color "" -
SetCurrentValue(nValue)
-
当前数据值
Parameters:
Name Type Description nValue
Number 数据值 Properties:
Name Type Description DataValue
Number 48526 -
SetCurrentValueFontSize(nValue)
-
数据文本大小
Parameters:
Name Type Description nValue
Number 数据值 Properties:
Name Type Description CurrentValueFontSize
Number 28 -
SetCurrentValuePos(strLeft, strBottom)
-
数据文本位置
Parameters:
Name Type Description strLeft
String 左侧百分比 strBottom
String 下侧百分比 Properties:
Name Type Description CurrentValuePos
Collection ["27%","32%"] -
SetDataColor(strColor)
-
数据值颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description DataColor
Color "0xff4582ff" -
SetFirstLegendPos(strLeft, strBottom)
-
图例一位置
Parameters:
Name Type Description strLeft
String 左侧百分比 strBottom
String 下侧百分比 Properties:
Name Type Description FirstLegendPos
Collection ["25%","41%"] -
SetIconImage(strImg)
-
末端图标图片
Parameters:
Name Type Description strImg
ImageProp 图标路径 Properties:
Name Type Description IconImage
ImageProp "common_2dChart/XUIRightProgressBarHalf/images/dxhdbz_yuandian.png" -
SetLegendFontColor(strColor)
-
图例文本颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LegendFontColor
Color "0xff8394c1" -
SetLegendText(strFirstLegent, strSecondLegent)
-
图例文本
Parameters:
Name Type Description strFirstLegent
String 文本一 strSecondLegent
String 文本二 Properties:
Name Type Description LegendText
Collection ["示例文本1","示例文本2"] -
SetMaxValuePos(strLeft, strBottom)
-
最大值位置
Parameters:
Name Type Description strLeft
String 左侧百分比 strBottom
String 下侧百分比 Properties:
Name Type Description MaxValuePos
Collection ["43%","8%"] -
SetMinAndMaxColor(strColor)
-
上下值的文本颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description MinAndMaxColor
Color "0xff8394c1" -
SetMinValuePos(strLeft, strTop)
-
最小值位置
Parameters:
Name Type Description strLeft
String 左侧百分比 strTop
String 上侧百分比 Properties:
Name Type Description MinValuePos
Collection ["48%","9%"] -
SetRadius(strRadius)
-
半径百分比
Parameters:
Name Type Description strRadius
String 半径百分比 Properties:
Name Type Description Radius
String "160%" -
SetScaleLabelSize(nValue)
-
上下值大小
Parameters:
Name Type Description nValue
Number 数据值 Properties:
Name Type Description ScaleLabelSize
Number 24 -
SetSecondLegendPos(strLeft, strBottom)
-
图例二位置
Parameters:
Name Type Description strLeft
String 左侧百分比 strBottom
String 下侧百分比 Properties:
Name Type Description SecondLegendPos
Collection ["25%","25%"] -
SetSplitLineColor(strColor)
-
分割线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description SplitLineColor
Color "0xff8491e2" -
SetStartAndEndAngle(nStartAngle, nEndAngle)
-
进度条起始角度
Parameters:
Name Type Description nStartAngle
Number 起始角度 nEndAngle
Number 结束角度 Properties:
Name Type Description StartAngle
Collection [90,-90] -
SetTipBgImage(strImg)
-
图例文本背景
Parameters:
Name Type Description strImg
ImageProp 路径 Properties:
Name Type Description TipBgImage
ImageProp "common_2dChart/XUIRightProgressBarHalf/images/dxhdbz_kuang.png" -
SetTipFontSize(nValue)
-
提示文本大小
Parameters:
Name Type Description nValue
Number 数据值 Properties:
Name Type Description TipFontSize
Number 22 -
SetValueRange(nMin, nMax)
-
刻度最小值和最大值
Parameters:
Name Type Description nMin
Number 最小值 nMax
Number 最大值 Properties:
Name Type Description ValueRange
Collection [0,60000]