com.itextpdf.text.pdf.richmedia
Class RichMediaAnimation
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.richmedia.RichMediaAnimation
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
Fields inherited from class com.itextpdf.text.pdf.PdfObject |
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Method Summary |
void |
setPlayCount(int playCount)
Sets the number of times the animation is played. |
void |
setSpeed(float speed)
Sets the speed to be used when running the animation. |
void |
setSpeed(int speed)
Sets the speed to be used when running the animation. |
Methods inherited from class com.itextpdf.text.pdf.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, toString |
Methods inherited from class com.itextpdf.text.pdf.PdfObject |
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type |
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
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
Copyright © 2015. All Rights Reserved.