new XUIRotateMenu()
Methods
-
IsAutoRotate(bAuto)
-
判断是否自动旋转
Parameters:
Name Type Description bAuto
Boolean 是否自动 Properties:
Name Type Description AutoRotate
Boolean true -
SetAutoCallback(callback, callObj)
-
设置调用
Parameters:
Name Type Description callback
String callObj
String -
SetBgImage(strPath)
-
设置背景Gif图路径
Parameters:
Name Type Description strPath
String 路径 Properties:
Name Type Description BgImage
String "websiteCase/XUIRotateMenu/images/rotate.gif" -
SetButtonImage(strPath)
-
设置按钮图片路径
Parameters:
Name Type Description strPath
String 路径 Properties:
Name Type Description ButtonImage
String "websiteCase/XUIRotateMenu/images/icon_quanbu.png" -
SetInitAngle(nAngle)
-
设置初始化旋转角度
Parameters:
Name Type Description nAngle
Number 角度 Properties:
Name Type Description InitAngle
Number 120 -
SetPieData(data1, data2, data3)
-
设置按钮图片路径
Parameters:
Name Type Description data1
Number 数据1 data2
Number 数据2 data3
Number 数据3 Properties:
Name Type Description PieData
Array [335,310,234] -
SetRadius(nRadius)
-
设置半径长度
Parameters:
Name Type Description nRadius
Number 单位px Properties:
Name Type Description Radius
Number 140 -
SetSelectPosition(nIndex)
-
设置焦点位置
Parameters:
Name Type Description nIndex
Number 下标 Properties:
Name Type Description SelectPosition
Number 1 -
SetSpeed(nSpeed)
-
设置旋转速度
Parameters:
Name Type Description nSpeed
Number 单位ms Properties:
Name Type Description Speed
Number 1000