com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class MovieAnnotation

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable, com.aspose.pdf.engine.ITitledAnnotation


    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.

    • Constructor Detail

      • MovieAnnotation

        public MovieAnnotation(IDocument document,
                               String movieFile)

        Constructor for using with Generator.

        Parameters:
        document - Document where movie annotation will be created.
        movieFile - Name of movie file.
      • MovieAnnotation

        public MovieAnnotation(Page page,
                               Rectangle rect,
                               String movieFile)

        Creates new Sound annotation on the specified page.

        Parameters:
        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.
    • Method Detail

      • getTitle

        public String getTitle()

        Gets the title of the movie annotation.

        Specified by:
        getTitle in interface com.aspose.pdf.engine.ITitledAnnotation
        Returns:
        String value
      • setTitle

        public void setTitle(String value)

        Sets the title of the movie annotation.

        Specified by:
        setTitle in interface com.aspose.pdf.engine.ITitledAnnotation
        Parameters:
        value - String value
      • getFile

        public FileSpecification getFile()

        Gets a file specification identifying a self-describing movie file.

        Returns:
        FileSpecification value
      • setFile

        public void setFile(FileSpecification value)

        Sets a file specification identifying a self-describing movie file.

        Parameters:
        value - FileSpecification object
      • getAspect

        public Point getAspect()

        Gets the width and height of the movie's bounding box, in pixels, specified as [ width height ].

        Returns:
        Point value
      • setAspect

        public void setAspect(Point value)

        Sets the width and height of the movie's bounding box, in pixels, specified as [ width height ].

        Parameters:
        value - Point object
      • getAnnotationType

        public int getAnnotationType()

        Gets type of annotation.

        Specified by:
        getAnnotationType in class Annotation
        Returns:
        AnnotationType element
        See Also:
        AnnotationType
      • accept

        public void accept(AnnotationSelector visitor)

        Accepts visitor object to process the annotation.

        Specified by:
        accept in class Annotation
        Parameters:
        visitor - Visitor object.