public final class PolygonAnnotation extends PolyAnnotation
Class representing polygon annotation.
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object for annotation processing.
|
AnnotationType |
getAnnotationType()
Gets type of annotation.
|
changeAfterResize, getEndingStyle, getIntent, getInteriorColor, getMeasure, getStartingStyle, getVertices, setEndingStyle, setIntent, setInteriorColor, setMeasure, setStartingStyle, setVerticesclearState, getCreationDate, getInReplyTo, getOpacity, getPopup, getReplyType, getRichText, getState, getStateModel, getSubject, getTitle, setCreationDate, setInReplyTo, setMarkedState, setOpacity, setPopup, setReplyType, setReviewState, setReviewState, setRichText, setSubject, setTitlecreateAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidthdeepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndexpublic PolygonAnnotation(IDocument document, Point[] vertices)
Constructor for using with Generator.
document - Document where annotation will be added.vertices - Array of points.public PolygonAnnotation(Page page, Rectangle rect, Point[] vertices)
Creates new Polygon annotation on the specified page.
page - The document's page where annotation should be created.rect - The annotation rectangle, defining the location of the annotation on the page.vertices - An array of polygon vertices points.public void accept(AnnotationSelector visitor)
Accepts visitor object for annotation processing.
accept in class Annotationvisitor - Visitor object.public AnnotationType getAnnotationType()
Gets type of annotation.
getAnnotationType in class AnnotationAnnotationTypeCopyright © 2025 Aspose. All Rights Reserved.