SquareAnnotation

Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation, com.aspose.pdf.MarkupAnnotation, com.aspose.pdf.CommonFigureAnnotation

public final class SquareAnnotation extends CommonFigureAnnotation

Class representing square annotation.

Constructors

ConstructorDescription
SquareAnnotation(IDocument document)Constructor for using with Generator.
SquareAnnotation(Page page, Rectangle rect)Creates new Square annotation on the specified page.

Methods

MethodDescription
accept(AnnotationSelector visitor)Accepts visitor to process annotation.
getAnnotationType()Gets type of annotation.

SquareAnnotation(IDocument document)

public SquareAnnotation(IDocument document)

Constructor for using with Generator.

Parameters:

ParameterTypeDescription
documentIDocumentDocumennt where annotation will be created.

SquareAnnotation(Page page, Rectangle rect)

public SquareAnnotation(Page page, Rectangle rect)

Creates new Square annotation on the specified page.

Parameters:

ParameterTypeDescription
pagePageThe document’s page where annotation should be created.
rectRectangleThe annotation rectangle, defining the location of the annotation on the page.

accept(AnnotationSelector visitor)

public void accept(AnnotationSelector visitor)

Accepts visitor to process annotation.

Parameters:

ParameterTypeDescription
visitorAnnotationSelectorVisitor object.

getAnnotationType()

public AnnotationType getAnnotationType()

Gets type of annotation.

Returns: AnnotationType - AnnotationType element