com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class LinkAnnotation

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


    public final class LinkAnnotation
    extends Annotation

    Represents either a hypertext link to a destination elsewhere in the document or an action to be performed.

    • Constructor Detail

      • LinkAnnotation

        public LinkAnnotation(Page page,
                      Rectangle rect)

        Creates new Link 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

      • getAction

        public PdfAction getAction()

        Get an action to be performed when the link annotation is activated.

        Returns:
        PdfAction value
      • setAction

        public void setAction(PdfAction value)

        Set an action to be performed when the link annotation is activated.

        Parameters:
        value - PdfAction object
      • getDestination

        public IAppointment getDestination()

        Get a destination to be displayed when the annotation is activated.

        Returns:
        IAppointment value
      • setDestination

        public void setDestination(IAppointment value)

        Set a destination to be displayed when the annotation is activated.

        Parameters:
        value - IAppointment object
      • accept

        public void accept(AnnotationSelector visitor)

        Accepts visitor object to process the annotation.

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

        public int getHighlighting()

        Get the visual effect to be used when the mouse button is pressed or held down inside its active area.

        Returns:
        HighlightingMode element
        See Also:
        HighlightingMode
      • setHighlighting

        public void setHighlighting(int value)

        Set the visual effect to be used when the mouse button is pressed or held down inside its active area.

        Parameters:
        value - HighlightingMode element
        See Also:
        HighlightingMode
      • getAnnotationType

        public int getAnnotationType()

        Gets type of annotation.

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