com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class PopupAnnotation

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable


    public final class PopupAnnotation
    extends Annotation

    Represents the pop-up annotation that displays text in a pop-up window for entry and editing.

    • Constructor Detail

      • PopupAnnotation

        public PopupAnnotation(IDocument document)

        Constructor. for using in Generator.

        Parameters:
        document - Document where new popup annotation will be created.
      • PopupAnnotation

        public PopupAnnotation(Page page,
                       Rectangle rect)

        Creates new Popup 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.
    • Method Detail

      • getOpen

        public boolean getOpen()

        Gets a flag specifying whether the pop-up annotation should initially be displayed open.

        Returns:
        boolean value
      • setOpen

        public void setOpen(boolean value)

        Sets a flag specifying whether the pop-up annotation should initially be displayed open.

        Parameters:
        value - boolean value
      • getParent

        public MarkupAnnotation getParent()

        Gets the parent annotation with which this pop-up annotation shall be associated. If this entry is present, the parent annotation's Contents, M, C, and T entries shall override those of the pop-up annotation itself.

        Returns:
        MarkupAnnotation object
      • setParent

        public void setParent(MarkupAnnotation value)

        Sets the parent annotation with which this pop-up annotation shall be associated. If this entry is present, the parent annotation's Contents, M, C, and T entries shall override those of the pop-up annotation itself.

        Parameters:
        value - MarkupAnnotation 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.