com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class PolygonAnnotation

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


    public final class PolygonAnnotation
    extends PolyAnnotation

    Class representing polygon annotation.

    • Constructor Detail

      • PolygonAnnotation

        public PolygonAnnotation(IDocument document,
                                 Point[] vertices)

        Constructor for using with Generator.

        Parameters:
        document - Document where annotation will be added.
        vertices - Array of points.
      • PolygonAnnotation

        public PolygonAnnotation(Page page,
                                 Rectangle rect,
                                 Point[] vertices)

        Creates new Polygon 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.
        vertices - An array of polygon vertices points.
    • Method Detail

      • accept

        public void accept(AnnotationSelector visitor)

        Accepts visitor object for annotation processing.

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

        public int getAnnotationType()

        Gets type of annotation.

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