new XUIRadar()
Methods
-
ClearData(strName)
-
删除所有数据
Parameters:
Name Type Description strName
string 删除的数据名 -
DelData(strName)
-
删除一个Data
Parameters:
Name Type Description strName
string 删除的数据名 -
GetBgColor() → {String}
-
获取背景颜色
Returns:
String -
GetMiddleColor() → {String}
-
获取中间圆颜色
Returns:
String -
GetOutSideRadarColor() → {String}
-
获取外部雷达圆颜色
Returns:
String -
GetRadarLineColor() → {String}
-
获取RadarLineColor
Returns:
String -
GetRadarMax()
-
获取radarMax
-
GetTipFontSize() → {Number}
-
获取标记文本大小
Returns:
Number -
GetTipTextColor() → {String}
-
获取标记文本颜色
Returns:
String -
SetBgColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String "0xff4569FF" Properties:
Name Type Description BgColor
Color "0xff4569FF" -
SetCheckPic(strPath)
-
设置Check图片
Parameters:
Name Type Description strPath
String Properties:
Name Type Description CheckPic
String "common_2dChart/XUIRadar/images/leida_dian.png" -
SetCurrentValueColor(strColor)
-
当前百分比颜色
Parameters:
Name Type Description strColor
String 16进制颜色值 Properties:
Name Type Description CurrentValueColor
String "0xff4569FF" -
SetCurrentValueTextSize(nSize)
-
当前百分比字体大小
Parameters:
Name Type Description nSize
Number Properties:
Name Type Description CurrentValueTextSize
Number 15 -
SetData(ArrayData)
-
设置Data
Parameters:
Name Type Description ArrayData
Array [80, 90, 30, 50, 80, 70, 60] -
SetDescriptionText(strText)
-
描述文本
Parameters:
Name Type Description strText
String Properties:
Name Type Description DescriptionText
String "示例描述文本" -
SetDescriptionTextColor(strColor)
-
描述文本颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description DescriptionTextColor
String "0xffffffff" -
SetDescriptionTextSize(nSize)
-
描述文本颜色大小
Parameters:
Name Type Description nSize
Number Properties:
Name Type Description DescriptionTextSize
Number 15 -
SetLineColor(strColor)
-
线的颜色
Parameters:
Name Type Description strColor
String "0xff4569FF" Properties:
Name Type Description LineColor
Color "0xff4569FF" -
SetMaxValue(nValue)
-
最大值
Parameters:
Name Type Description nValue
Number 100 Properties:
Name Type Description MaxValue
Number 100 -
SetMiddleColor(strColor)
-
中间圆颜色
Parameters:
Name Type Description strColor
String "0xff060a22" Properties:
Name Type Description MiddleColor
Color "0xff060a22" -
SetMiddleRadius(nRadius)
-
中间圆大小
Parameters:
Name Type Description nRadius
String Properties:
Name Type Description MiddleRadius
String "40%" -
SetNormalPic(strPath)
-
设置normal图片
Parameters:
Name Type Description strPath
String Properties:
Name Type Description NormalPic
String "common_2dChart/XUIRadar/images/leida_dian2.png" -
SetOutSideColor(strOutColor, strOutLineColor)
-
外部雷达圆的颜色
Parameters:
Name Type Description strOutColor
String 外部颜色 strOutLineColor
String 外部线的颜色 Properties:
Name Type Description OutSideColor
Collection ["0xff4569FF", "0xff4569FF"] -
SetTipCheckedColor(strColor)
-
标记文本选中颜色
Parameters:
Name Type Description strColor
String "0xffff0000" Properties:
Name Type Description TipCheckedColor
Color "0xffff0000" -
SetTipColor(strColor)
-
标记文本颜色
Parameters:
Name Type Description strColor
String "0xff8394c1" Properties:
Name Type Description TipColor
Color "0xff8394c1" -
SetTipFontSize(nSize)
-
标记文本大小
Parameters:
Name Type Description nSize
Number 22 Properties:
Name Type Description TipSize
Number 22 -
SetTipText(ArrayData)
-
设置TipText
Parameters:
Name Type Description ArrayData
Array