public final class LinkAnnotation extends Annotation
Represents either a hypertext link to a destination elsewhere in the document or an action to be performed.
_disableUpdateAppearance
Constructor and Description |
---|
LinkAnnotation(Page page,
Rectangle rect)
Creates new Link annotation on the specified page.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
|
PdfAction |
getAction()
Get an action to be performed when the link annotation is activated.
|
int |
getAnnotationType()
Gets type of annotation.
|
IAppointment |
getDestination()
Get a destination to be displayed when the annotation is activated.
|
int |
getHighlighting()
Get the visual effect to be used when the mouse button is pressed or held down inside its
active area.
|
void |
setAction(PdfAction value)
Set an action to be performed when the link annotation is activated.
|
void |
setDestination(IAppointment value)
Set a destination to be displayed when the annotation is activated.
|
void |
setHighlighting(int value)
Set the visual effect to be used when the mouse button is pressed or held down inside its
active area.
|
createAnnotation, 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, setStructParent, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public PdfAction getAction()
Get an action to be performed when the link annotation is activated.
public void setAction(PdfAction value)
Set an action to be performed when the link annotation is activated.
value
- PdfAction objectpublic IAppointment getDestination()
Get a destination to be displayed when the annotation is activated.
public void setDestination(IAppointment value)
Set a destination to be displayed when the annotation is activated.
value
- IAppointment objectpublic void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
accept
in class Annotation
visitor
- Visitor object.public int getHighlighting()
Get the visual effect to be used when the mouse button is pressed or held down inside its active area.
HighlightingMode
public void setHighlighting(int value)
Set the visual effect to be used when the mouse button is pressed or held down inside its active area.
value
- HighlightingMode elementHighlightingMode
public int getAnnotationType()
Gets type of annotation.
getAnnotationType
in class Annotation
AnnotationType