Class AnimationImpl

java.lang.Object
io.webfolder.cdp.command.AnimationImpl
All Implemented Interfaces:
Animation

public class AnimationImpl
extends java.lang.Object
implements Animation
  • Constructor Summary

    Constructors 
    Constructor Description
    AnimationImpl​(SessionInvocationHandler handler)  
  • Method Summary

    Modifier and Type Method Description
    void disable()
    Disables animation domain notifications.
    void enable()
    Enables animation domain notifications.
    java.lang.Double getCurrentTime​(java.lang.String id)
    Returns the current time of the an animation.
    java.lang.Double getPlaybackRate()
    Gets the playback rate of the document timeline.
    void releaseAnimations​(java.util.List<java.lang.String> animations)
    Releases a set of animations to no longer be manipulated.
    RemoteObject resolveAnimation​(java.lang.String animationId)
    Gets the remote object of the Animation.
    void seekAnimations​(java.util.List<java.lang.String> animations, java.lang.Double currentTime)
    Seek a set of animations to a particular time within each animation.
    void setPaused​(java.util.List<java.lang.String> animations, java.lang.Boolean paused)
    Sets the paused state of a set of animations.
    void setPlaybackRate​(java.lang.Double playbackRate)
    Sets the playback rate of the document timeline.
    void setTiming​(java.lang.String animationId, java.lang.Double duration, java.lang.Double delay)
    Sets the timing of an animation node.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • disable

      public void disable()
      Description copied from interface: Animation
      Disables animation domain notifications.
      Specified by:
      disable in interface Animation
    • enable

      public void enable()
      Description copied from interface: Animation
      Enables animation domain notifications.
      Specified by:
      enable in interface Animation
    • getCurrentTime

      public java.lang.Double getCurrentTime​(java.lang.String id)
      Description copied from interface: Animation
      Returns the current time of the an animation.
      Specified by:
      getCurrentTime in interface Animation
      Parameters:
      id - Id of animation.
      Returns:
      Current time of the page.
    • getPlaybackRate

      public java.lang.Double getPlaybackRate()
      Description copied from interface: Animation
      Gets the playback rate of the document timeline.
      Specified by:
      getPlaybackRate in interface Animation
      Returns:
      Playback rate for animations on page.
    • releaseAnimations

      public void releaseAnimations​(java.util.List<java.lang.String> animations)
      Description copied from interface: Animation
      Releases a set of animations to no longer be manipulated.
      Specified by:
      releaseAnimations in interface Animation
      Parameters:
      animations - List of animation ids to seek.
    • resolveAnimation

      public RemoteObject resolveAnimation​(java.lang.String animationId)
      Description copied from interface: Animation
      Gets the remote object of the Animation.
      Specified by:
      resolveAnimation in interface Animation
      Parameters:
      animationId - Animation id.
      Returns:
      Corresponding remote object.
    • seekAnimations

      public void seekAnimations​(java.util.List<java.lang.String> animations, java.lang.Double currentTime)
      Description copied from interface: Animation
      Seek a set of animations to a particular time within each animation.
      Specified by:
      seekAnimations in interface Animation
      Parameters:
      animations - List of animation ids to seek.
      currentTime - Set the current time of each animation.
    • setPaused

      public void setPaused​(java.util.List<java.lang.String> animations, java.lang.Boolean paused)
      Description copied from interface: Animation
      Sets the paused state of a set of animations.
      Specified by:
      setPaused in interface Animation
      Parameters:
      animations - Animations to set the pause state of.
      paused - Paused state to set to.
    • setPlaybackRate

      public void setPlaybackRate​(java.lang.Double playbackRate)
      Description copied from interface: Animation
      Sets the playback rate of the document timeline.
      Specified by:
      setPlaybackRate in interface Animation
      Parameters:
      playbackRate - Playback rate for animations on page
    • setTiming

      public void setTiming​(java.lang.String animationId, java.lang.Double duration, java.lang.Double delay)
      Description copied from interface: Animation
      Sets the timing of an animation node.
      Specified by:
      setTiming in interface Animation
      Parameters:
      animationId - Animation id.
      duration - Duration of the animation.
      delay - Delay of the animation.