com.esri.arcgis.animation
Class AGAnimationTrack

java.lang.Object
  extended bycom.esri.arcgis.animation.AGAnimationTrack
All Implemented Interfaces:
IAGAnimationTrack, IAGAnimationTrackExtensions, IAGAnimationTrackKeyframes, IPersist, IPersistStream, java.io.Serializable

public class AGAnimationTrack
extends java.lang.Object
implements IAGAnimationTrack, IAGAnimationTrackKeyframes, IAGAnimationTrackExtensions, IPersistStream

The Animation Track coclass.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Constructor Summary
AGAnimationTrack()
          Constructs a AGAnimationTrack using ArcGIS Engine.
AGAnimationTrack(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 void addExtension(java.lang.Object ext)
          Adds a new extension.
 void attachObject(java.lang.Object pObject)
          Attach object to the track.
 IAGKeyframe createKeyframe(int index)
          Creates a new keyframe of the appropriate type and inserts it.
 void detachAllObjects()
          Detach all objects from the track.
 void detachObject(java.lang.Object pObject)
          Detach object from the track.
 boolean equals(java.lang.Object o)
          Compare this object with another
 void findKeyframe(java.lang.String name, IAGKeyframe[] ppKeyframe)
          Finds a keyframe by name.
 ILongArray getActiveProperties()
          The combination of active properties for the track.
 IAGAnimationContainer getAnimationObjectContainer()
          The container of the animation objects attached to the tracks.
 IAGAnimationTrack getAsIAGAnimationTrack()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IAGAnimationTrackExtensions getAsIAGAnimationTrackExtensions()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IAGAnimationTrackKeyframes getAsIAGAnimationTrackKeyframes()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IPersistStream getAsIPersistStream()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IArray getAttachedObjects()
          The objects to which the track is attached, or null.
 int getAttachedObjectsCount()
          The number of objects to which the track is attached.
 double getBeginTime()
          The initial time of the track.
 void getClassID(GUID[] pClassID)
          Supported Platforms
static java.lang.String getClsid()
           
 double getEndTime()
          The final time of the track.
 java.lang.Object getExtension(int index)
          The extension at the specified index.
 int getExtensionCount()
          Number of extensions.
 int getKeyframeCount()
          The number of keyframes defined in the track.
 IAGKeyframe getLastInterpolatedKeyframe()
          The last keyframe that was interpolated in the track.
 java.lang.String getName()
          The name of the track.
 void getSizeMax(_ULARGE_INTEGER[] pcbSize)
          Supported Platforms
 int hashCode()
          the hashcode for this object
 IAGAnimationType IAGAnimationTrack_getAnimationType()
          The animation type.
 IAGKeyframe IAGAnimationTrackKeyframes_getKeyframe(int index)
          The keyframe with the given index in the track.
 void insertKeyframe(IAGKeyframe pKeyframe, int index)
          Inserts a new keyframe.
 void interpolateObjectProperties(IAGAnimationContainer pContainer, double time)
          Interpolates the state of the attached object for a time between BeginTime and Endtime.
 boolean isActiveProperty(int propIndex)
          Indicates if an animation property is active.
 boolean isApplyToAllViewers()
          Indicates whether to apply a camera track to all viewers.
 boolean isAttached(java.lang.Object pObject)
          Indicates if the given object is attached to the track.
 boolean isCycle()
          Indicates if the track is repeated periodically.
 void isDirty()
          Supported Platforms
 boolean isEnabled()
          Indicates if the track is enabled.
 boolean isEvenTimeStamps()
          Indicates whether to distribute time stamps evenly in the interval 0-1.
 void load(IStream pstm)
          Supported Platforms
 void moveKeyframe(int originIndex, int destinationIndex)
          Moves the keyframe with the given index, inserting it with a different index.
 void removeAllKeyframes()
          Removes all the keyframes.
 void removeExtension(int index)
          Removes the specified extension.
 void removeKeyframe(int index)
          Removes the keyframe with the given index.
 void resetAttachedObjects(IAGAnimationContainer pContainer)
          Reset the state of the attached objects to be ready for animation.
 void resetTimeStamps()
          Redistributes the time stamps in the interval [0,1].
 void restoreObjectProperties(IAGAnimationContainer pContainer, int index)
          Restores the saved properties of the attached object specified.
 void save(IStream pstm, int fClearDirty)
          Supported Platforms
 void saveObjectProperties(IAGAnimationContainer pContainer, int index)
          Internally saves the properties of the attached object specified.
 void setActiveProperties(ILongArray ppActiveProps)
          The combination of active properties for the track.
 void setAnimationObjectContainerByRef(IAGAnimationContainer ppContainer)
          The container of the animation objects attached to the tracks.
 void setAnimationTypeByRef(IAGAnimationType ppAnimationType)
          The animation type.
 void setApplyToAllViewers(boolean pbApplyToAllViewers)
          Indicates whether to apply a camera track to all viewers.
 void setAttachedObjects(IArray ppObjectArray)
          The objects to which the track is attached, or null.
 void setBeginTime(double pBeginTime)
          The initial time of the track.
 void setEndTime(double pEndTime)
          The final time of the track.
 void setEvenTimeStamps(boolean pbEvenTimeStamps)
          Indicates whether to distribute time stamps evenly in the interval 0-1.
 void setIsActiveProperty(int propIndex, boolean pbIsActiveProp)
          Indicates if an animation property is active.
 void setIsCycle(boolean pbIsCycle)
          Indicates if the track is repeated periodically.
 void setIsEnabled(boolean pbIsEnabled)
          Indicates if the track is enabled.
 void setName(java.lang.String name)
          The name of the track.
 void sortKeyframes()
          Sorts the keyframes in ascending time order.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGAnimationTrack

public AGAnimationTrack()
                 throws java.io.IOException,
                        java.net.UnknownHostException
Constructs a AGAnimationTrack using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

AGAnimationTrack

public AGAnimationTrack(java.lang.Object obj)
                 throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.

Construct a AGAnimationTrack using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to AGAnimationTrack.
AGAnimationTrack theAGAnimationTrack = (AGAnimationTrack) obj;

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()

getAsIAGAnimationTrack

public IAGAnimationTrack getAsIAGAnimationTrack()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIAGAnimationTrackKeyframes

public IAGAnimationTrackKeyframes getAsIAGAnimationTrackKeyframes()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIAGAnimationTrackExtensions

public IAGAnimationTrackExtensions getAsIAGAnimationTrackExtensions()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIPersistStream

public IPersistStream getAsIPersistStream()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

public boolean equals(java.lang.Object o)
Compare this object with another


hashCode

public int hashCode()
the hashcode for this object


getName

public java.lang.String getName()
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IAGAnimationTrack
The name of the track.

Specified by:
getName in interface IAGAnimationTrack
Returns:
The name
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setName

public void setName(java.lang.String name)
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IAGAnimationTrack
The name of the track.

Specified by:
setName in interface IAGAnimationTrack
Parameters:
name - The name (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

IAGAnimationTrack_getAnimationType

public IAGAnimationType IAGAnimationTrack_getAnimationType()
                                                    throws java.io.IOException,
                                                           AutomationException
Description copied from interface: IAGAnimationTrack
The animation type.

Specified by:
IAGAnimationTrack_getAnimationType in interface IAGAnimationTrack
Returns:
A reference to a com.esri.arcgis.animation.IAGAnimationType
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setAnimationTypeByRef

public void setAnimationTypeByRef(IAGAnimationType ppAnimationType)
                           throws java.io.IOException,
                                  AutomationException
Description copied from interface: IAGAnimationTrack
The animation type.

Specified by:
setAnimationTypeByRef in interface IAGAnimationTrack
Parameters:
ppAnimationType - A reference to a com.esri.arcgis.animation.IAGAnimationType (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isCycle

public boolean isCycle()
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IAGAnimationTrack
Indicates if the track is repeated periodically.

Specified by:
isCycle in interface IAGAnimationTrack
Returns:
The pbIsCycle
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setIsCycle

public void setIsCycle(boolean pbIsCycle)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IAGAnimationTrack
Indicates if the track is repeated periodically.

Specified by:
setIsCycle in interface IAGAnimationTrack
Parameters:
pbIsCycle - The pbIsCycle (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBeginTime

public double getBeginTime()
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IAGAnimationTrack
The initial time of the track.

Specified by:
getBeginTime in interface IAGAnimationTrack
Returns:
The pBeginTime
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setBeginTime

public void setBeginTime(double pBeginTime)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IAGAnimationTrack
The initial time of the track.

Specified by:
setBeginTime in interface IAGAnimationTrack
Parameters:
pBeginTime - The pBeginTime (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEndTime

public double getEndTime()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IAGAnimationTrack
The final time of the track.

Specified by:
getEndTime in interface IAGAnimationTrack
Returns:
The pEndTime
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setEndTime

public void setEndTime(double pEndTime)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IAGAnimationTrack
The final time of the track.

Specified by:
setEndTime in interface IAGAnimationTrack
Parameters:
pEndTime - The pEndTime (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isEnabled

public boolean isEnabled()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IAGAnimationTrack
Indicates if the track is enabled.

Specified by:
isEnabled in interface IAGAnimationTrack
Returns:
The pbIsEnabled
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setIsEnabled

public void setIsEnabled(boolean pbIsEnabled)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IAGAnimationTrack
Indicates if the track is enabled.

Specified by:
setIsEnabled in interface IAGAnimationTrack
Parameters:
pbIsEnabled - The pbIsEnabled (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setApplyToAllViewers

public void setApplyToAllViewers(boolean pbApplyToAllViewers)
                          throws java.io.IOException,
                                 AutomationException
Description copied from interface: IAGAnimationTrack
Indicates whether to apply a camera track to all viewers.

Specified by:
setApplyToAllViewers in interface IAGAnimationTrack
Parameters:
pbApplyToAllViewers - The pbApplyToAllViewers (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

isApplyToAllViewers

public boolean isApplyToAllViewers()
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: IAGAnimationTrack
Indicates whether to apply a camera track to all viewers.

Specified by:
isApplyToAllViewers in interface IAGAnimationTrack
Returns:
The pbApplyToAllViewers
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getAttachedObjectsCount

public int getAttachedObjectsCount()
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: IAGAnimationTrack
The number of objects to which the track is attached.

Specified by:
getAttachedObjectsCount in interface IAGAnimationTrack
Returns:
The pObjectCount
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getAttachedObjects

public IArray getAttachedObjects()
                          throws java.io.IOException,
                                 AutomationException
Description copied from interface: IAGAnimationTrack
The objects to which the track is attached, or null.

Specified by:
getAttachedObjects in interface IAGAnimationTrack
Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

isAttached

public boolean isAttached(java.lang.Object pObject)
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IAGAnimationTrack
Indicates if the given object is attached to the track.

Specified by:
isAttached in interface IAGAnimationTrack
Parameters:
pObject - A reference to another Object (IUnknown) (in)
Returns:
The pbIsAttached
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAttachedObjects

public void setAttachedObjects(IArray ppObjectArray)
                        throws java.io.IOException,
                               AutomationException
Description copied from interface: IAGAnimationTrack
The objects to which the track is attached, or null.

Specified by:
setAttachedObjects in interface IAGAnimationTrack
Parameters:
ppObjectArray - A reference to a com.esri.arcgis.system.IArray (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

attachObject

public void attachObject(java.lang.Object pObject)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IAGAnimationTrack
Attach object to the track.

Specified by:
attachObject in interface IAGAnimationTrack
Parameters:
pObject - A reference to another Object (IUnknown) (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

detachObject

public void detachObject(java.lang.Object pObject)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IAGAnimationTrack
Detach object from the track.

Specified by:
detachObject in interface IAGAnimationTrack
Parameters:
pObject - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

detachAllObjects

public void detachAllObjects()
                      throws java.io.IOException,
                             AutomationException
Description copied from interface: IAGAnimationTrack
Detach all objects from the track.

Specified by:
detachAllObjects in interface IAGAnimationTrack
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

resetAttachedObjects

public void resetAttachedObjects(IAGAnimationContainer pContainer)
                          throws java.io.IOException,
                                 AutomationException
Description copied from interface: IAGAnimationTrack
Reset the state of the attached objects to be ready for animation.

Specified by:
resetAttachedObjects in interface IAGAnimationTrack
Parameters:
pContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interpolateObjectProperties

public void interpolateObjectProperties(IAGAnimationContainer pContainer,
                                        double time)
                                 throws java.io.IOException,
                                        AutomationException
Description copied from interface: IAGAnimationTrack
Interpolates the state of the attached object for a time between BeginTime and Endtime.

Specified by:
interpolateObjectProperties in interface IAGAnimationTrack
Parameters:
pContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
time - The time (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAnimationObjectContainer

public IAGAnimationContainer getAnimationObjectContainer()
                                                  throws java.io.IOException,
                                                         AutomationException
Description copied from interface: IAGAnimationTrack
The container of the animation objects attached to the tracks.

Specified by:
getAnimationObjectContainer in interface IAGAnimationTrack
Returns:
A reference to a com.esri.arcgis.animation.IAGAnimationContainer
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setAnimationObjectContainerByRef

public void setAnimationObjectContainerByRef(IAGAnimationContainer ppContainer)
                                      throws java.io.IOException,
                                             AutomationException
Description copied from interface: IAGAnimationTrack
The container of the animation objects attached to the tracks.

Specified by:
setAnimationObjectContainerByRef in interface IAGAnimationTrack
Parameters:
ppContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getActiveProperties

public ILongArray getActiveProperties()
                               throws java.io.IOException,
                                      AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
The combination of active properties for the track.

Remarks

This property stores the indexes of all the active properties of an animation track.

Specified by:
getActiveProperties in interface IAGAnimationTrackKeyframes
Returns:
A reference to a com.esri.arcgis.system.ILongArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setActiveProperties

public void setActiveProperties(ILongArray ppActiveProps)
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
The combination of active properties for the track.

Specified by:
setActiveProperties in interface IAGAnimationTrackKeyframes
Parameters:
ppActiveProps - A reference to a com.esri.arcgis.system.ILongArray (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isActiveProperty

public boolean isActiveProperty(int propIndex)
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Indicates if an animation property is active.

Specified by:
isActiveProperty in interface IAGAnimationTrackKeyframes
Parameters:
propIndex - The propIndex (in)
Returns:
The pbIsActiveProp
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setIsActiveProperty

public void setIsActiveProperty(int propIndex,
                                boolean pbIsActiveProp)
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Indicates if an animation property is active.

Specified by:
setIsActiveProperty in interface IAGAnimationTrackKeyframes
Parameters:
propIndex - The propIndex (in)
pbIsActiveProp - The pbIsActiveProp (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getKeyframeCount

public int getKeyframeCount()
                     throws java.io.IOException,
                            AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
The number of keyframes defined in the track.

Specified by:
getKeyframeCount in interface IAGAnimationTrackKeyframes
Returns:
The pKeyframeCount
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

IAGAnimationTrackKeyframes_getKeyframe

public IAGKeyframe IAGAnimationTrackKeyframes_getKeyframe(int index)
                                                   throws java.io.IOException,
                                                          AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
The keyframe with the given index in the track.

Specified by:
IAGAnimationTrackKeyframes_getKeyframe in interface IAGAnimationTrackKeyframes
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.animation.IAGKeyframe
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createKeyframe

public IAGKeyframe createKeyframe(int index)
                           throws java.io.IOException,
                                  AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Creates a new keyframe of the appropriate type and inserts it. If the index is -1, it is added last.

Specified by:
createKeyframe in interface IAGAnimationTrackKeyframes
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.animation.IAGKeyframe
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

insertKeyframe

public void insertKeyframe(IAGKeyframe pKeyframe,
                           int index)
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Inserts a new keyframe. If the index is -1, it is added last.

Specified by:
insertKeyframe in interface IAGAnimationTrackKeyframes
Parameters:
pKeyframe - A reference to a com.esri.arcgis.animation.IAGKeyframe (in)
index - The index (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeKeyframe

public void removeKeyframe(int index)
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Removes the keyframe with the given index.

Specified by:
removeKeyframe in interface IAGAnimationTrackKeyframes
Parameters:
index - The index (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAllKeyframes

public void removeAllKeyframes()
                        throws java.io.IOException,
                               AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Removes all the keyframes.

Specified by:
removeAllKeyframes in interface IAGAnimationTrackKeyframes
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

findKeyframe

public void findKeyframe(java.lang.String name,
                         IAGKeyframe[] ppKeyframe)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Finds a keyframe by name.

Specified by:
findKeyframe in interface IAGAnimationTrackKeyframes
Parameters:
name - The name (in)
ppKeyframe - A reference to a com.esri.arcgis.animation.IAGKeyframe (out: use single element array)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

moveKeyframe

public void moveKeyframe(int originIndex,
                         int destinationIndex)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Moves the keyframe with the given index, inserting it with a different index.

Remarks

This method first insert the keyframe into the destination index, and then remove the original keyframe. Suppose that you have 3 keyframes in a track with indexes 0, 1 and 2. When executing "MoveKeyframe 0, 2", the procedure taken by this method is 0, 1, 2 -> 0, 1, 0, 2 -> 1, 0, 2. Therefore, keyframe 0 gets a new index of 1 after "MoveKeyframe 0, 2" is executed.

Specified by:
moveKeyframe in interface IAGAnimationTrackKeyframes
Parameters:
originIndex - The originIndex (in)
destinationIndex - The destinationIndex (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

sortKeyframes

public void sortKeyframes()
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Sorts the keyframes in ascending time order.

Specified by:
sortKeyframes in interface IAGAnimationTrackKeyframes
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

resetTimeStamps

public void resetTimeStamps()
                     throws java.io.IOException,
                            AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Redistributes the time stamps in the interval [0,1].

Remarks

This method redistributes keyframe time stamps in the interval [0, 1]. For example, if the EvenTimeStamps is set to be true, this method will redistribute the time stamps evenly in the interval [0, 1].

Specified by:
resetTimeStamps in interface IAGAnimationTrackKeyframes
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

saveObjectProperties

public void saveObjectProperties(IAGAnimationContainer pContainer,
                                 int index)
                          throws java.io.IOException,
                                 AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Internally saves the properties of the attached object specified.

Specified by:
saveObjectProperties in interface IAGAnimationTrackKeyframes
Parameters:
pContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
index - The index (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

restoreObjectProperties

public void restoreObjectProperties(IAGAnimationContainer pContainer,
                                    int index)
                             throws java.io.IOException,
                                    AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Restores the saved properties of the attached object specified.

Specified by:
restoreObjectProperties in interface IAGAnimationTrackKeyframes
Parameters:
pContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
index - The index (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setEvenTimeStamps

public void setEvenTimeStamps(boolean pbEvenTimeStamps)
                       throws java.io.IOException,
                              AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Indicates whether to distribute time stamps evenly in the interval 0-1.

Specified by:
setEvenTimeStamps in interface IAGAnimationTrackKeyframes
Parameters:
pbEvenTimeStamps - The pbEvenTimeStamps (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isEvenTimeStamps

public boolean isEvenTimeStamps()
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
Indicates whether to distribute time stamps evenly in the interval 0-1.

Specified by:
isEvenTimeStamps in interface IAGAnimationTrackKeyframes
Returns:
The pbEvenTimeStamps
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLastInterpolatedKeyframe

public IAGKeyframe getLastInterpolatedKeyframe()
                                        throws java.io.IOException,
                                               AutomationException
Description copied from interface: IAGAnimationTrackKeyframes
The last keyframe that was interpolated in the track.

Specified by:
getLastInterpolatedKeyframe in interface IAGAnimationTrackKeyframes
Returns:
A reference to a com.esri.arcgis.animation.IAGKeyframe
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExtensionCount

public int getExtensionCount()
                      throws java.io.IOException,
                             AutomationException
Description copied from interface: IAGAnimationTrackExtensions
Number of extensions.

Specified by:
getExtensionCount in interface IAGAnimationTrackExtensions
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExtension

public java.lang.Object getExtension(int index)
                              throws java.io.IOException,
                                     AutomationException
Description copied from interface: IAGAnimationTrackExtensions
The extension at the specified index.

Specified by:
getExtension in interface IAGAnimationTrackExtensions
Parameters:
index - The index (in)
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addExtension

public void addExtension(java.lang.Object ext)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IAGAnimationTrackExtensions
Adds a new extension.

Specified by:
addExtension in interface IAGAnimationTrackExtensions
Parameters:
ext - A reference to another Object (IUnknown) (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

removeExtension

public void removeExtension(int index)
                     throws java.io.IOException,
                            AutomationException
Description copied from interface: IAGAnimationTrackExtensions
Removes the specified extension.

Specified by:
removeExtension in interface IAGAnimationTrackExtensions
Parameters:
index - The index (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

isDirty

public void isDirty()
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IPersistStream

Supported Platforms

Windows, Solaris, Linux

Description

IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.

Specified by:
isDirty in interface IPersistStream
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

load

public void load(IStream pstm)
          throws java.io.IOException,
                 AutomationException
Description copied from interface: IPersistStream

Supported Platforms

Windows, Solaris, Linux

Description

IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.

Specified by:
load in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

save

public void save(IStream pstm,
                 int fClearDirty)
          throws java.io.IOException,
                 AutomationException
Description copied from interface: IPersistStream

Supported Platforms

Windows, Solaris, Linux

Description

IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.

Specified by:
save in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
fClearDirty - The fClearDirty (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSizeMax

public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IPersistStream

Supported Platforms

Windows, Solaris, Linux

Description

IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.

Specified by:
getSizeMax in interface IPersistStream
Parameters:
pcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getClassID

public void getClassID(GUID[] pClassID)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IPersist

Supported Platforms

Windows, Solaris, Linux

Description

IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.

Specified by:
getClassID in interface IPersist
Parameters:
pClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.