PolygonAnnotation
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 PolygonAnnotation extends PolyAnnotation
Class representing polygon annotation.
Constructors
Constructor | Description |
---|---|
PolygonAnnotation(IDocument document, Point[] vertices) | Constructor for using with Generator. |
PolygonAnnotation(Page page, Rectangle rect, Point[] vertices) | Creates new Polygon annotation on the specified page. |
Methods
Method | Description |
---|---|
accept(AnnotationSelector visitor) | Accepts visitor object for annotation processing. |
getAnnotationType() | Gets type of annotation. |
PolygonAnnotation(IDocument document, Point[] vertices)
public PolygonAnnotation(IDocument document, Point[] vertices)
Constructor for using with Generator.
Parameters:
Parameter | Type | Description |
---|---|---|
document | IDocument | Document where annotation will be added. |
vertices | Point[] | Array of points. |
PolygonAnnotation(Page page, Rectangle rect, Point[] vertices)
public PolygonAnnotation(Page page, Rectangle rect, Point[] vertices)
Creates new Polygon 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 for annotation processing.
Parameters:
Parameter | Type | Description |
---|---|---|
visitor | AnnotationSelector | Visitor object. |
getAnnotationType()
public AnnotationType getAnnotationType()
Gets type of annotation.
Returns: AnnotationType - AnnotationType element