AnnotationActionCollection
Overview
AnnotationActionCollection is a class in Aspose.PDF FOSS for Java.
Represents a collection of actions associated with an annotation (ISO 32000-1:2008, Section 12.6.3).
This class provides 10 methods for working with AnnotationActionCollection objects in Java programs.
Available methods include: AnnotationActionCollection, add, get, getOnEnter, getOnExit, getOnPressMouseBtn, setOnEnter, setOnExit, setOnPressMouseBtn, size.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: onEnter, onExit, onPressMouseBtn.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
onExit | PdfAction | Read | Returns the action triggered when the cursor exits the annotation area. |
onEnter | PdfAction | Read | Returns the action triggered when the cursor enters the annotation area. |
onPressMouseBtn | PdfAction | Read | Returns the action triggered when the mouse button is pressed. |
Methods
| Signature | Description |
|---|---|
AnnotationActionCollection() | Creates an empty annotation action collection. |
add(action: PdfAction) | Adds an action to this collection. |
size() → int | Returns the number of actions in this collection. |
get(index: int) → PdfAction | Returns the action at the specified index. |
getOnExit() → PdfAction | Returns the action triggered when the cursor exits the annotation area. |
setOnExit(action: PdfAction) | Sets the action triggered when the cursor exits the annotation area. |
getOnEnter() → PdfAction | Returns the action triggered when the cursor enters the annotation area. |
setOnEnter(action: PdfAction) | Sets the action triggered when the cursor enters the annotation area. |
getOnPressMouseBtn() → PdfAction | Returns the action triggered when the mouse button is pressed. |
setOnPressMouseBtn(action: PdfAction) | Sets the action triggered when the mouse button is pressed. |