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 or sets the width and height of the movie�s bounding box, in pixels.
|
FileSpecification |
getFile()
Gets a file specification identifying a self-describing movie file.
|
boolean |
getPoster()
Gets or sets a flag or stream specifying whether and how a poster image representing the movie shall be displayed.
|
int |
getRotate()
Gets or sets the number of degrees by which the movie shall be rotated clockwise relative to the page.
|
String |
getTitle()
Gets the title of the movie annotation.
|
void |
setAspect(Point value)
Gets or sets the width and height of the movie�s bounding box, in pixels.
|
void |
setFile(FileSpecification value)
Sets a file specification identifying a self-describing movie file.
|
void |
setPoster(boolean value)
Gets or sets a flag or stream specifying whether and how a poster image representing the movie shall be displayed.
|
void |
setRotate(int value)
Gets or sets the number of degrees by which the movie shall be rotated clockwise relative to the page.
|
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, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setStructParent, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
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 final boolean getPoster()
Gets or sets a flag or stream specifying whether and how a poster image representing the movie shall be displayed. If true, the poster image shall be retrieved from the movie file; if it is false, no poster shall be displayed.
public final void setPoster(boolean value)
Gets or sets a flag or stream specifying whether and how a poster image representing the movie shall be displayed. If true, the poster image shall be retrieved from the movie file; if it is false, no poster shall be displayed.
value
- boolean valuepublic final Point getAspect()
Gets or sets the width and height of the movie�s bounding box, in pixels.
public final void setAspect(Point value)
Gets or sets the width and height of the movie�s bounding box, in pixels.
value
- Point instancepublic final int getRotate()
Gets or sets the number of degrees by which the movie shall be rotated clockwise relative to the page. The value shall be a multiple of 90.
public final void setRotate(int value)
Gets or sets the number of degrees by which the movie shall be rotated clockwise relative to the page. The value shall be a multiple of 90.
value
- int valuepublic 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.