com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class ScreenAnnotation

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


    public final class ScreenAnnotation
    extends Annotation
    implements com.aspose.pdf.engine.ITitledAnnotation

    A screen annotation that specifies a region of a page upon which media clips may be played.

    • Constructor Detail

      • ScreenAnnotation

        public ScreenAnnotation(Page page,
                        Rectangle rect,
                        String mediaFile)

        Creates new Screen 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.
        mediaFile - The path to multimedia file.
    • Method Detail

      • accept

        public void accept(AnnotationSelector visitor)

        Represent accept method

        Specified by:
        accept in class Annotation
        Parameters:
        visitor - AnnotationSelector object
      • getTitle

        public String getTitle()

        Gets the title of the screen 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 screen annotation.

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

        public PdfAction getAction()

        Gets an action to be performed when the annotation is activated.

        Returns:
        PdfAction object
      • setAction

        public void setAction(PdfAction value)

        Sets an action to be performed when the annotation is activated.

        Parameters:
        value - PdfAction object
      • getAnnotationType

        public int getAnnotationType()

        Gets type of annotation.

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