new XUIImitate3DPie()
Methods
-
AddData(strName, nData, strColor)
-
加入数据
Parameters:
Name Type Description strName
Array 数据名 nData
Array 数据 strColor
Array 数据颜色 -
ClearData()
-
清空
-
DeleteColorByName(strName)
-
删除某一项
Parameters:
Name Type Description strName
String 项名 -
GetBgColor() → {String}
-
获取背景颜色
Returns:
String -
GetBgImg() → {String}
-
获取背景图
Returns:
String -
GetBgImgRepeat() → {String}
-
获取背景图绘制模式
Returns:
String -
GetColorByName(strName) → {String}
-
获取某一项的颜色
Parameters:
Name Type Description strName
String 项名 Returns:
String -
GetData() → {Array}
-
获取数据
Returns:
Array -
GetFontColor() → {String}
-
获取文字颜色
Returns:
String -
GetFontSize() → {Number}
-
获取文字大小
Returns:
Number -
GetInnerRingSize() → {Number}
-
获取内环大小
Returns:
Number -
GetPiePosition() → {Array}
-
获取饼图的偏移
Returns:
Array -
GetRingHeight() → {Number}
-
获取环的高度
Returns:
Number -
GetRingSize() → {Array}
-
获取环的大小
Returns:
Array -
IsDrawBgColor() → {Boolean}
-
获取是否绘制图标背景色
Returns:
Boolean -
SetBgColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description BgColor
Color "0x00000000" -
SetBgImg(strImg)
-
背景图
Parameters:
Name Type Description strImg
ImageProp 图片 Properties:
Name Type Description BgImg
ImageProp "" -
SetBgImgRepeat(strMode)
-
背景图绘制模式
Parameters:
Name Type Description strMode
String 图片 Properties:
Name Type Description BgImgRepeat
Combo ["repeat","no-repeat","repeat-x","repeat-y"] -
SetColorByName(strName, strColor)
-
某一项的颜色
Parameters:
Name Type Description strName
String 项名 strColor
String 颜色 -
SetData(arrData)
-
数据
Parameters:
Name Type Description arrData
Array 数据 -
SetDrawBgColor(bDraw)
-
是否绘制图标背景色
Parameters:
Name Type Description bDraw
Boolean true背景色,false背景图 Properties:
Name Type Description DrawBgColor
Boolean true -
SetFontColor(strColor)
-
文字颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description FontColor
Color "0xff000000" -
SetFontSize(nSize)
-
文字大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description FontSize
Number 12 -
SetInnerRingSize(nInnerSize)
-
内环大小
Parameters:
Name Type Description nInnerSize
Number 内环大小 Properties:
Name Type Description InnerRingSize
Number 0.4 -
SetPiePosition(nPosX, nPosY)
-
饼图的偏移
Parameters:
Name Type Description nPosX
Number x方向,负左正右 nPosY
Number y方向,负上正下 Properties:
Name Type Description PiePosition
Collection [0,0] -
SetRingHeight(nHeight)
-
环的高度
Parameters:
Name Type Description nHeight
Number 高度 Properties:
Name Type Description RingHeight
Number 30 -
SetRingSize(nWidth, nHeight)
-
环的大小
Parameters:
Name Type Description nWidth
Number 宽度 nHeight
Number 高度 Properties:
Name Type Description RingSize
Collection [130,100]