PopupAnnotation
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation
public final class PopupAnnotation extends Annotation
Represents the pop-up annotation that displays text in a pop-up window for entry and editing.
Constructors
Constructor | Description |
---|---|
PopupAnnotation(IDocument document) | Constructor. |
PopupAnnotation(Page page, Rectangle rect) | Creates new Popup annotation on the specified page. |
Methods
Method | Description |
---|---|
getOpen() | Gets a flag specifying whether the pop-up annotation should initially be displayed open. |
setOpen(boolean value) | Sets a flag specifying whether the pop-up annotation should initially be displayed open. |
getParent() | Gets the parent annotation with which this pop-up annotation shall be associated. |
setParent(MarkupAnnotation value) | Sets the parent annotation with which this pop-up annotation shall be associated. |
getAnnotationType() | Gets type of annotation. |
accept(AnnotationSelector visitor) | Accepts visitor object to process the annotation. |
PopupAnnotation(IDocument document)
public PopupAnnotation(IDocument document)
Constructor. for using in Generator.
Parameters:
Parameter | Type | Description |
---|---|---|
document | IDocument | Document where new popup annotation will be created. |
PopupAnnotation(Page page, Rectangle rect)
public PopupAnnotation(Page page, Rectangle rect)
Creates new Popup 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. |
getOpen()
public boolean getOpen()
Gets a flag specifying whether the pop-up annotation should initially be displayed open.
Returns: boolean - boolean value
setOpen(boolean value)
public void setOpen(boolean value)
Sets a flag specifying whether the pop-up annotation should initially be displayed open.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean value |
getParent()
public Annotation getParent()
Gets the parent annotation with which this pop-up annotation shall be associated. If this entry is present, the parent annotation’s Contents, M, C, and T entries shall override those of the pop-up annotation itself.
Returns: Annotation - MarkupAnnotation object
setParent(MarkupAnnotation value)
public void setParent(MarkupAnnotation value)
Sets the parent annotation with which this pop-up annotation shall be associated. If this entry is present, the parent annotation’s Contents, M, C, and T entries shall override those of the pop-up annotation itself.
Parameters:
Parameter | Type | Description |
---|---|---|
value | MarkupAnnotation | MarkupAnnotation object |
getAnnotationType()
public AnnotationType getAnnotationType()
Gets type of annotation.
Returns: AnnotationType - AnnotationType element
accept(AnnotationSelector visitor)
public void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
Parameters:
Parameter | Type | Description |
---|---|---|
visitor | AnnotationSelector | Visitor object. |