com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class SquareAnnotation

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


    public final class SquareAnnotation
    extends CommonFigureAnnotation

    Class representing square annotation.

    • Constructor Detail

      • SquareAnnotation

        public SquareAnnotation(IDocument document)

        Constructor for using with Generator.

        Parameters:
        document - Documennt where annotation will be created.
      • SquareAnnotation

        public SquareAnnotation(Page page,
                        Rectangle rect)

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

      • accept

        public void accept(AnnotationSelector visitor)

        Accepts visitor to process annotation.

        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