com.supermap.plot
Class AnimationGroup
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.plot.AnimationGroup
-
public class AnimationGroup extends InternalHandleDisposable
Animation group
-
-
Constructor Summary
Constructors Constructor and Description AnimationGroup()Construction method
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddAnimation(AnimationGO pAnimation)Adds animation objectsvoiddeleteAllAnimations()Removes all animation objectsbooleandeleteAnimation(java.lang.String animationName)Removes the specified animation objectsvoiddispose()Closesjava.util.List<AnimationGO>getAllAnimation()Gets all animation objectsAnimationGO[]getAllAnimationByGeometry(int geomtryID, java.lang.String controlName, java.lang.String layerName)Gets all animations of the current objectAnimationGO[]GetAllAnimationByType(AnimationDefine.AnimationType type)Gets the animation object array corresponding with the specified animation typesAnimationGOgetAnimationByIndex(int index)Creates index animation objects according to the index sequenceAnimationGOGetAnimationByName(java.lang.String AnimatinoName)Gets animation objects according to their namesintgetAnimationCount()Gets the number of the animation groupsAnimationDefine.AnimationGroupPlayStateGetAnimationGroupPlayState()Gets the playing status of animation groupdoublegetDuration()Gets the lasting timejava.lang.StringgetGroupName()Gets the name of the animation groupdoublegetStartTime()Gets the starting timebooleanRemoveAllAnimationByGeometry(int geometryId, java.lang.String controlName, java.lang.String layerName)Removes all animation corresponding with the specified geometry objectvoidremoveAllAnimations()Removes all animation objectsbooleanremoveAnimation(java.lang.String animationName)Removes animation objectsvoidsetGroupName(java.lang.String groupName)Sets the name of the animation groupvoidsetStartTime(double time)Sets the starting time
-
-
-
Method Detail
-
addAnimation
public void addAnimation(AnimationGO pAnimation)
Adds animation objects- Parameters:
pAnimation- animation objects
-
getGroupName
public java.lang.String getGroupName()
Gets the name of the animation group- Returns:
- the name of the animation group
-
setGroupName
public void setGroupName(java.lang.String groupName)
Sets the name of the animation group- Parameters:
groupName- the name of the animation group
-
getAnimationCount
public int getAnimationCount()
Gets the number of the animation groups- Returns:
- the number of the animation groups
-
getAnimationByIndex
public AnimationGO getAnimationByIndex(int index)
Creates index animation objects according to the index sequence- Parameters:
index- the index- Returns:
- The animation object.
-
getAllAnimationByGeometry
public AnimationGO[] getAllAnimationByGeometry(int geomtryID, java.lang.String controlName, java.lang.String layerName)
Gets all animations of the current object- Parameters:
geomtryID- id of geometry objectcontrolName- the name of animation objectlayerName- Layer name- Returns:
- The animation object array.
-
GetAllAnimationByType
public AnimationGO[] GetAllAnimationByType(AnimationDefine.AnimationType type)
Gets the animation object array corresponding with the specified animation types- Parameters:
type- The animation type- Returns:
- The animation object array.
-
getAllAnimation
public java.util.List<AnimationGO> getAllAnimation()
Gets all animation objects- Returns:
- All animation objects.
-
removeAnimation
public boolean removeAnimation(java.lang.String animationName)
Removes animation objects- Parameters:
animationName- the name of an animation object- Returns:
- removal was successful.
-
removeAllAnimations
public void removeAllAnimations()
Removes all animation objects
-
RemoveAllAnimationByGeometry
public boolean RemoveAllAnimationByGeometry(int geometryId, java.lang.String controlName, java.lang.String layerName)Removes all animation corresponding with the specified geometry object- Parameters:
geometryId- id of geometry objectcontrolName- the name of animationlayerName- Layer name- Returns:
- removal was successful.
-
deleteAnimation
public boolean deleteAnimation(java.lang.String animationName)
Removes the specified animation objects- Parameters:
animationName- the name of an animation object- Returns:
- removal was successful.
-
deleteAllAnimations
public void deleteAllAnimations()
Removes all animation objects
-
setStartTime
public void setStartTime(double time)
Sets the starting time- Parameters:
time- The starting time
-
getStartTime
public double getStartTime()
Gets the starting time- Returns:
- the starting time
-
getDuration
public double getDuration()
Gets the lasting time- Returns:
- The lasting time of animation
-
GetAnimationGroupPlayState
public AnimationDefine.AnimationGroupPlayState GetAnimationGroupPlayState()
Gets the playing status of animation group- Returns:
- the playing status of animation group
-
GetAnimationByName
public AnimationGO GetAnimationByName(java.lang.String AnimatinoName)
Gets animation objects according to their names- Parameters:
AnimatinoName- Name- Returns:
- The animation object.
-
dispose
public void dispose()
Closes
-
-