Class RichMediaAnimation

  • All Implemented Interfaces:
    java.io.Serializable

    public class RichMediaAnimation
    extends PdfDictionary
    A RichMediaAnimation dictionary specifies the preferred method that conforming readers should use to apply timeline scaling to keyframe animations. It can also specify that keyframe animations be played repeatedly. See ExtensionLevel 3 p80
    Since:
    5.0.0
    See Also:
    RichMediaActivation, Serialized Form
    • Constructor Detail

      • RichMediaAnimation

        public RichMediaAnimation​(PdfName subtype)
        Constructs a RichMediaAnimation. Also sets the animation style described by this dictionary. Valid values are None, Linear, and Oscillating.
        Parameters:
        subtype - possible values are PdfName.NONE, PdfName.LINEAR, PdfName.OSCILLATING
    • Method Detail

      • setPlayCount

        public void setPlayCount​(int playCount)
        Sets the number of times the animation is played.
        Parameters:
        playCount - the play count
      • setSpeed

        public void setSpeed​(int speed)
        Sets the speed to be used when running the animation. A value greater than one shortens the time it takes to play the animation, or effectively speeds up the animation.
        Parameters:
        speed - a speed value
      • setSpeed

        public void setSpeed​(float speed)
        Sets the speed to be used when running the animation. A value greater than one shortens the time it takes to play the animation, or effectively speeds up the animation.
        Parameters:
        speed - a speed value