PolylineAnnotation

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

public final class PolylineAnnotation extends PolyAnnotation

Represents polyline annotation that is similar to polygon, except that the first and last vertex are not implicitly connected.

Constructors

ConstructorDescription
PolylineAnnotation(Page page, Rectangle rect, Point[] vertices)Creates new Polyline annotation on the specified page.

Methods

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

PolylineAnnotation(Page page, Rectangle rect, Point[] vertices)

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

Creates new Polyline 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.
verticesPoint[]An array of polygon vertices points.

accept(AnnotationSelector visitor)

public void accept(AnnotationSelector visitor)

Accepts visitor object to process the annotation.

Parameters:

ParameterTypeDescription
visitorAnnotationSelectorVisitor object.

getAnnotationType()

public AnnotationType getAnnotationType()

Gets type of annotation.

Returns: AnnotationType - AnnotationType element