com.itextpdf.text.pdf.richmedia
Class RichMediaAnimation

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfObject
      extended by com.itextpdf.text.pdf.PdfDictionary
          extended by 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

Field Summary
 
Fields inherited from class com.itextpdf.text.pdf.PdfDictionary
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES
 
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
 
Constructor Summary
RichMediaAnimation(PdfName subtype)
          Constructs a RichMediaAnimation.
 
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
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

Hosted by Hostbasket