java.lang.Object | ||
↳ | com.pspdfkit.annotations.Annotation | |
↳ | com.pspdfkit.annotations.LinkAnnotation |
![]() |
![]() |
Link type of annotation either carrying an URI or a page destination.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LinkAnnotation(int pageIndex)
Creates new link annotation.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Action |
getAction()
Returns the action set on this annotation.
| ||||||||||
AnnotationType |
getType()
Gets the annotation type of the annotation.
| ||||||||||
void |
setAction(Action action)
Sets the action to the annotation.
| ||||||||||
void |
setFillColor(int color)
Note that this property does not affect
LinkAnnotation s as this type of annotation
does not render any appearance. | ||||||||||
void |
updateTransformationProperties(RectF newBoundingBox, RectF oldBoundingBox)
Annotations may override this method to transform their properties (i.e.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates new link annotation. LinkAnnotation
s do not render any appearance. They are
created only as interactive, transparent bounding boxes.
pageIndex | Page index to attach the link annotation to. |
---|
Returns the action set on this annotation.
Gets the annotation type of the annotation.
Sets the action to the annotation.
action | Action to be executed when the annotation is tapped, null to remove
action.
|
---|
Note that this property does not affect LinkAnnotation
s as this type of annotation
does not render any appearance. They are created only as interactive, transparent bounding
boxes.
color | The annotation color or Color#TRANSPARENT to clear the field.
|
---|
Annotations may override this method to transform their properties (i.e. points, rects, sizes) whenever the bounding box of the annotation changed.
newBoundingBox | New bounding box of the annotation (in PDF points). |
---|---|
oldBoundingBox | Old bounding box of the annotation (in PDF points). |