Class RichMediaAnimation
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.richmedia.RichMediaAnimation
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPlayCount(int playCount) Sets the number of times the animation is played.voidsetSpeed(float speed) Sets the speed to be used when running the animation.voidsetSpeed(int speed) Sets the speed to be used when running the animation.Methods inherited from class PdfDictionary
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringMethods inherited from class PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Constructor Details
-
RichMediaAnimation
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 Details
-
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
-