public class CPDFLinkAnnotation extends CPDFAnnotation
Modifier and Type | Class and Description |
---|---|
static class |
CPDFLinkAnnotation.CPDFLinkAnnotationAttr |
CPDFAnnotation.AppearanceType, CPDFAnnotation.BorderEffectIntensity, CPDFAnnotation.CPDFBorderEffectType, CPDFAnnotation.Flags, CPDFAnnotation.MarkState, CPDFAnnotation.MediaSourceType, CPDFAnnotation.ReviewState, CPDFAnnotation.Type
index
Modifier and Type | Method and Description |
---|---|
void |
applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr) |
void |
close()
When the object is no longer in use, call this method to release resources.
|
CPDFAnnotationUndoAttr |
getAnnotationAttr() |
CPDFDestination |
getDestination(CPDFDocument document)
Gets link information of document.
|
CPDFAction |
getLinkAction()
Gets the response action of the link annotation.
|
android.graphics.RectF |
getRect()
Gets annotation rectangle.
|
boolean |
setDestination(CPDFDocument document,
CPDFDestination destination)
Sets link information of document.
|
boolean |
setLinkAction(CPDFAction action)
Sets the response action of the link annotation.
|
boolean |
setRect(android.graphics.RectF rect)
Sets annotation rectangle.
|
addToPage, createReplyAnnotation, disableListenAttrChanged, enableListenAttrChanged, equal, equal, getAllReplyAnnotations, getAnnotIndexFromNative, getAnnotPtr, getAppearance, getAppearanceByPixel, getApRotation, getBordEffectIntensity, getBordEffectType, getBorderWidth, getContent, getCreationDate, getFlags, getMarkedAnnotState, getName, getRecentlyModifyDate, getReviewAnnotState, getRotateRectPoint, getRotation, getSourceRect, getTitle, getType, getVertices, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, moveAnnotIndex, removeAp, removeFromPage, removeFromPageIncludeReplyAnnot, setAllowCorrectAnnotationAp, setAnnotTop, setBordEffectIntensity, setBordEffectType, setBorderWidth, setContent, setCreationDate, setFlags, setHidden, setLocked, setMarkedAnnotState, setName, setOnAnnotationChangedListener, setReadOnly, setRecentlyModifyDate, setReviewAnnotState, setRotation, setSourceRect, setTitle, setVertices, updateAp, updateApWithBitmap, updateApWithImage
public boolean setLinkAction(CPDFAction action)
CPDFAction.ActionType
The action type can be obtained throughCPDFAction.getActionType()
, more: CPDFAction
action
- Response action of the link annotation.public CPDFAction getLinkAction()
CPDFAction.ActionType
The action type can be obtained throughCPDFAction.getActionType()
, more: CPDFAction
CPDFAction
public CPDFDestination getDestination(CPDFDocument document)
document
- This class is about CPDFDocument, one CPDFDocument class for one document.CPDFDocument
,
CPDFDestination
public boolean setDestination(CPDFDocument document, CPDFDestination destination)
document
- This class is about CPDFDocument, one CPDFDocument class for one document.destination
- destination information.public boolean setRect(android.graphics.RectF rect)
CPDFPage.convertRectToPage(boolean, float, float, RectF)
.setRect
in class CPDFAnnotation
rect
- Rectangle on the page.public android.graphics.RectF getRect()
CPDFPage.convertRectToPage(boolean, float, float, RectF)
.getRect
in class CPDFAnnotation
public CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr
in class CPDFAnnotation
public void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr
in class CPDFAnnotation
public void close()
close
in class CPDFAnnotation