public final class MovieAnnotation extends Annotation implements com.aspose.pdf.engine.ITitledAnnotation
Represents a movie annotation that contains animated graphics and sound to be presented on the computer screen and through the speakers. When the annotation is activated, the movie is played.
_disableUpdateAppearance
Constructor and Description |
---|
MovieAnnotation(IDocument document,
String movieFile)
Constructor for using with Generator.
|
MovieAnnotation(Page page,
Rectangle rect,
String movieFile)
Creates new Sound annotation on the specified page.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
|
int |
getAnnotationType()
Gets type of annotation.
|
Point |
getAspect()
Gets the width and height of the movie�s bounding box, in pixels, specified as [ width height
].
|
FileSpecification |
getFile()
Gets a file specification identifying a self-describing movie file.
|
String |
getTitle()
Gets the title of the movie annotation.
|
void |
setAspect(Point value)
Sets the width and height of the movie�s bounding box, in pixels, specified as [ width height
].
|
void |
setFile(FileSpecification value)
Sets a file specification identifying a self-describing movie file.
|
void |
setTitle(String value)
Sets the title of the movie annotation.
|
createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getRect, getStates, getWidth, initialize, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, isFirstParagraphInColumn, isFootNoteParagraph, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setFootNoteParagraph, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment
public MovieAnnotation(IDocument document, String movieFile)
Constructor for using with Generator.
document
- Document where movie annotation will be created.movieFile
- Name of movie file.public MovieAnnotation(Page page, Rectangle rect, String movieFile)
Creates new Sound annotation on the specified page.
page
- The document's page where annotation should be created.rect
- The annotation rectangle, defining the location of the annotation on the page.movieFile
- A movie file to be played when the annotation is activated.public String getTitle()
Gets the title of the movie annotation.
getTitle
in interface com.aspose.pdf.engine.ITitledAnnotation
public void setTitle(String value)
Sets the title of the movie annotation.
setTitle
in interface com.aspose.pdf.engine.ITitledAnnotation
value
- String valuepublic FileSpecification getFile()
Gets a file specification identifying a self-describing movie file.
public void setFile(FileSpecification value)
Sets a file specification identifying a self-describing movie file.
value
- FileSpecification objectpublic Point getAspect()
Gets the width and height of the movie�s bounding box, in pixels, specified as [ width height ].
public void setAspect(Point value)
Sets the width and height of the movie�s bounding box, in pixels, specified as [ width height ].
value
- Point objectpublic int getAnnotationType()
Gets type of annotation.
getAnnotationType
in class Annotation
AnnotationType
public void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
accept
in class Annotation
visitor
- Visitor object.Copyright © 2016 Aspose. All Rights Reserved.