com.supermap.plot
Class AnimationManager
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.plot.AnimationManager
-
public class AnimationManager extends InternalHandleDisposable
Animation class manage class
-
-
Constructor Summary
Constructors Constructor and Description AnimationManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description AnimationGroupaddAnimationGroup(java.lang.String strgroupname)Adds an animation groupvoidaddAnimationPlayBeginListener(AnimationPlayBeginListener listener)Adds the listener of playing an animationvoidaddAnimationPlayFinishListener(AnimationPlayFinishListener listener)Adds the listener of ending an animationAnimationGOcreateAnimation(AnimationDefine.AnimationType type)Creates an animationvoiddeleteAll()Deletes all objectsvoiddeleteAnimationManager()Deletes the animation manage objectbooleandeleteGroupByName(java.lang.String groupName)Deletes animation groups according to their namevoiddispose()Releasevoidexcute()InitializesbooleangetAnimationFromXML(java.lang.String filePath)Gets an animation from a specified xmljava.lang.String[]getDeletedGeoAnimations()Gets the name of animation to be removedAnimationGroupgetGroupByIndex(int ipos)Gets animation groups according to sequenceAnimationGroupgetGroupByName(java.lang.String groupName)Gets animation groups according to their namesintgetGroupCount()Gets the number of the animation groupsstatic AnimationManagergetInstance()Gets the instance of the classbooleanmerge(java.lang.String groupName1, java.lang.String groupName2)Merges two animation groupsbooleanmoveNext(int iGroupIndex)Moves the animation to the lastbooleanmovePrev(int iGroupIndex)Moves the animation to the topvoidpause()Pausesvoidplay()PlaysvoidremoveAnimationPlayBeginListener(AnimationPlayBeginListener listener)Removes the listener of playing an animationvoidremoveAnimationPlayFinishListener(AnimationPlayFinishListener listener)Removes the listener of ending an animationvoidreset()ResetbooleansaveAnimationToXML(java.lang.String filePath)Converts an animation to a xmlbooleansplit(java.lang.String oldGroupName, int index, java.lang.String newGroupName)Splits the animation groupvoidstop()Stops
-
-
-
Method Detail
-
getInstance
public static AnimationManager getInstance()
Gets the instance of the class- Returns:
- the instance of the class
-
createAnimation
public AnimationGO createAnimation(AnimationDefine.AnimationType type)
Creates an animation- Parameters:
type- The animation type- Returns:
- The animation object.
-
play
public void play()
Plays
-
stop
public void stop()
Stops
-
pause
public void pause()
Pauses
-
reset
public void reset()
Reset
-
excute
public void excute()
Initializes
-
addAnimationGroup
public AnimationGroup addAnimationGroup(java.lang.String strgroupname)
Adds an animation group- Parameters:
strgroupname- the name of the animation group- Returns:
- the animation groups
-
getGroupByName
public AnimationGroup getGroupByName(java.lang.String groupName)
Gets animation groups according to their names- Parameters:
groupName- Name- Returns:
- the animation groups
-
getGroupByIndex
public AnimationGroup getGroupByIndex(int ipos)
Gets animation groups according to sequence- Parameters:
ipos- sequence- Returns:
- the animation groups
-
getGroupCount
public int getGroupCount()
Gets the number of the animation groups- Returns:
- Number
-
deleteGroupByName
public boolean deleteGroupByName(java.lang.String groupName)
Deletes animation groups according to their name- Parameters:
groupName- Name- Returns:
- removal was successful.
-
deleteAll
public void deleteAll()
Deletes all objects
-
merge
public boolean merge(java.lang.String groupName1, java.lang.String groupName2)Merges two animation groups- Parameters:
groupName1- NamegroupName2- Name- Returns:
- whether the merging is successful.
-
split
public boolean split(java.lang.String oldGroupName, int index, java.lang.String newGroupName)Splits the animation group- Parameters:
oldGroupName- the name of the old animation groupindex- The splitting positionnewGroupName- the name of new animation- Returns:
- whether the dividing is successful.
-
movePrev
public boolean movePrev(int iGroupIndex)
Moves the animation to the top- Parameters:
iGroupIndex- Animation sequence- Returns:
- whether succeed
-
moveNext
public boolean moveNext(int iGroupIndex)
Moves the animation to the last- Parameters:
iGroupIndex- Animation sequence- Returns:
- whether succeed
-
getAnimationFromXML
public boolean getAnimationFromXML(java.lang.String filePath)
Gets an animation from a specified xml- Parameters:
filePath- xml address- Returns:
- whether succeed
-
saveAnimationToXML
public boolean saveAnimationToXML(java.lang.String filePath)
Converts an animation to a xml- Parameters:
filePath- xml address- Returns:
- whether succeed
-
getDeletedGeoAnimations
public java.lang.String[] getDeletedGeoAnimations()
Gets the name of animation to be removed- Returns:
- An array of names.
-
addAnimationPlayBeginListener
public void addAnimationPlayBeginListener(AnimationPlayBeginListener listener)
Adds the listener of playing an animation- Parameters:
listener- the listener of playing an animation
-
removeAnimationPlayBeginListener
public void removeAnimationPlayBeginListener(AnimationPlayBeginListener listener)
Removes the listener of playing an animation- Parameters:
listener- the listener of playing an animation
-
addAnimationPlayFinishListener
public void addAnimationPlayFinishListener(AnimationPlayFinishListener listener)
Adds the listener of ending an animation- Parameters:
listener- the listener of ending an animation
-
removeAnimationPlayFinishListener
public void removeAnimationPlayFinishListener(AnimationPlayFinishListener listener)
Removes the listener of ending an animation- Parameters:
listener- the listener of ending an animation
-
deleteAnimationManager
public void deleteAnimationManager()
Deletes the animation manage object
-
dispose
public void dispose()
Release
-
-