PolylineAnnotation
Contents
[
Hide
]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
Constructor | Description |
---|---|
PolylineAnnotation(Page page, Rectangle rect, Point[] vertices) | Creates new Polyline annotation on the specified page. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
page | Page | The document’s page where annotation should be created. |
rect | Rectangle | The annotation rectangle, defining the location of the annotation on the page. |
vertices | Point[] | An array of polygon vertices points. |
accept(AnnotationSelector visitor)
public void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
Parameters:
Parameter | Type | Description |
---|---|---|
visitor | AnnotationSelector | Visitor object. |
getAnnotationType()
public AnnotationType getAnnotationType()
Gets type of annotation.
Returns: AnnotationType - AnnotationType element