public interface Animation
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Disables animation domain notifications.
|
void |
enable()
Enables animation domain notifications.
|
Double |
getCurrentTime(String id)
Returns the current time of the an animation.
|
Double |
getPlaybackRate()
Gets the playback rate of the document timeline.
|
EventListener |
onAnimationCanceled(EventHandler<AnimationCanceled> eventListener)
Event for when an animation has been cancelled.
|
EventListener |
onAnimationCreated(EventHandler<AnimationCreated> eventListener)
Event for each animation that has been created.
|
EventListener |
onAnimationStarted(EventHandler<AnimationStarted> eventListener)
Event for animation that has been started.
|
void |
releaseAnimations(List<String> animations)
Releases a set of animations to no longer be manipulated.
|
RemoteObject |
resolveAnimation(String animationId)
Gets the remote object of the Animation.
|
void |
seekAnimations(List<String> animations,
Double currentTime)
Seek a set of animations to a particular time within each animation.
|
void |
setPaused(List<String> animations,
Boolean paused)
Sets the paused state of a set of animations.
|
void |
setPlaybackRate(Double playbackRate)
Sets the playback rate of the document timeline.
|
void |
setTiming(String animationId,
Double duration,
Double delay)
Sets the timing of an animation node.
|
void disable()
void enable()
Double getCurrentTime(String id)
id - Id of animation.Double getPlaybackRate()
void releaseAnimations(List<String> animations)
animations - List of animation ids to seek.RemoteObject resolveAnimation(String animationId)
animationId - Animation id.void seekAnimations(List<String> animations, Double currentTime)
animations - List of animation ids to seek.currentTime - Set the current time of each animation.void setPaused(List<String> animations, Boolean paused)
animations - Animations to set the pause state of.paused - Paused state to set to.void setPlaybackRate(Double playbackRate)
playbackRate - Playback rate for animations on pagevoid setTiming(String animationId, Double duration, Double delay)
animationId - Animation id.duration - Duration of the animation.delay - Delay of the animation.EventListener onAnimationCanceled(EventHandler<AnimationCanceled> eventListener)
EventListener onAnimationCreated(EventHandler<AnimationCreated> eventListener)
EventListener onAnimationStarted(EventHandler<AnimationStarted> eventListener)
Copyright © 2020. All rights reserved.