public class AnimationManager extends InternalHandleDisposable
构造器和说明 |
---|
AnimationManager() |
限定符和类型 | 方法和说明 |
---|---|
AnimationGroup |
addAnimationGroup(java.lang.String strgroupname)
添加动画组
|
void |
addAnimationPlayBeginListener(AnimationPlayBeginListener listener)
添加动画开始播放监听
|
void |
addAnimationPlayFinishListener(AnimationPlayFinishListener listener)
添加动画结束播放监听
|
AnimationGO |
createAnimation(AnimationDefine.AnimationType type)
创建动画
|
void |
deleteAll()
删除所有对象
|
void |
deleteAnimationManager()
删除动画管理对象
|
boolean |
deleteGroupByName(java.lang.String groupName)
根据名称删除动画组
|
void |
dispose()
释放
|
void |
excute()
初始化
|
boolean |
getAnimationFromXML(java.lang.String filePath)
从指定xml获取动画
|
java.lang.String[] |
getDeletedGeoAnimations()
获取删除动画的名称
|
AnimationGroup |
getGroupByIndex(int ipos)
根据序列获取动画组
|
AnimationGroup |
getGroupByName(java.lang.String groupName)
根据名称获取动画组
|
int |
getGroupCount()
获取动画组个数
|
static AnimationManager |
getInstance()
获取动画对象管理类实例
|
boolean |
merge(java.lang.String groupName1, java.lang.String groupName2)
合并两个动画组
|
boolean |
moveNext(int iGroupIndex)
将动画对象后移一位
|
boolean |
movePrev(int iGroupIndex)
将动画对象移至最前
|
void |
pause()
暂停
|
void |
play()
播放
|
void |
removeAnimationPlayBeginListener(AnimationPlayBeginListener listener)
移除动画开始播放监听
|
void |
removeAnimationPlayFinishListener(AnimationPlayFinishListener listener)
移除动画结束播放监听
|
void |
reset()
复位
|
boolean |
saveAnimationToXML(java.lang.String filePath)
将动画转为xml
|
boolean |
split(java.lang.String oldGroupName, int index, java.lang.String newGroupName)
切割动画组
|
void |
stop()
停止
|
public static AnimationManager getInstance()
public AnimationGO createAnimation(AnimationDefine.AnimationType type)
type
- 动画类型public void play()
public void stop()
public void pause()
public void reset()
public void excute()
public AnimationGroup addAnimationGroup(java.lang.String strgroupname)
strgroupname
- 动画组名称public AnimationGroup getGroupByName(java.lang.String groupName)
groupName
- 名称public AnimationGroup getGroupByIndex(int ipos)
ipos
- 序列public int getGroupCount()
public boolean deleteGroupByName(java.lang.String groupName)
groupName
- 名称public void deleteAll()
public boolean merge(java.lang.String groupName1, java.lang.String groupName2)
groupName1
- 名称groupName2
- 名称public boolean split(java.lang.String oldGroupName, int index, java.lang.String newGroupName)
oldGroupName
- 原动画组名称index
- 切割位置newGroupName
- 新动画名称public boolean movePrev(int iGroupIndex)
iGroupIndex
- 动画序列public boolean moveNext(int iGroupIndex)
iGroupIndex
- 动画序列public boolean getAnimationFromXML(java.lang.String filePath)
filePath
- xml地址public boolean saveAnimationToXML(java.lang.String filePath)
filePath
- xml地址public java.lang.String[] getDeletedGeoAnimations()
public void addAnimationPlayBeginListener(AnimationPlayBeginListener listener)
listener
- 动画开始播放监听public void removeAnimationPlayBeginListener(AnimationPlayBeginListener listener)
listener
- 动画开始播放监听public void addAnimationPlayFinishListener(AnimationPlayFinishListener listener)
listener
- 动画结束播放监听public void removeAnimationPlayFinishListener(AnimationPlayFinishListener listener)
listener
- 动画结束播放监听public void deleteAnimationManager()
public void dispose()