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 AnimationGroup
addAnimationGroup(java.lang.String strgroupname)
Adds an animation groupvoid
addAnimationPlayBeginListener(AnimationPlayBeginListener listener)
Adds the listener of playing an animationvoid
addAnimationPlayFinishListener(AnimationPlayFinishListener listener)
Adds the listener of ending an animationAnimationGO
createAnimation(AnimationDefine.AnimationType type)
Creates an animationvoid
deleteAll()
Deletes all objectsvoid
deleteAnimationManager()
Deletes the animation manage objectboolean
deleteGroupByName(java.lang.String groupName)
Deletes animation groups according to their namevoid
dispose()
Releasevoid
excute()
Initializesboolean
getAnimationFromXML(java.lang.String filePath)
Gets an animation from a specified xmljava.lang.String[]
getDeletedGeoAnimations()
Gets the name of animation to be removedAnimationGroup
getGroupByIndex(int ipos)
Gets animation groups according to sequenceAnimationGroup
getGroupByName(java.lang.String groupName)
Gets animation groups according to their namesint
getGroupCount()
Gets the number of the animation groupsstatic AnimationManager
getInstance()
Gets the instance of the classboolean
merge(java.lang.String groupName1, java.lang.String groupName2)
Merges two animation groupsboolean
moveNext(int iGroupIndex)
Moves the animation to the lastboolean
movePrev(int iGroupIndex)
Moves the animation to the topvoid
pause()
Pausesvoid
play()
Playsvoid
removeAnimationPlayBeginListener(AnimationPlayBeginListener listener)
Removes the listener of playing an animationvoid
removeAnimationPlayFinishListener(AnimationPlayFinishListener listener)
Removes the listener of ending an animationvoid
reset()
Resetboolean
saveAnimationToXML(java.lang.String filePath)
Converts an animation to a xmlboolean
split(java.lang.String oldGroupName, int index, java.lang.String newGroupName)
Splits the animation groupvoid
stop()
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
-
-