|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPdfObjectContainer
com.crionics.jpdf.annotation.AbstractAnnotation
com.crionics.jpdf.annotation.LinkAnnotation
public class LinkAnnotation
A link annotation represents either a hypertext link to a destination elsewhere in the document or an action to be performed when activated.
| Field Summary | |
|---|---|
static int |
HIGHLIGHT_INVERT
Invert the contents of the annotation rectangle. |
static int |
HIGHLIGHT_NONE
No highlighting will be done. |
static int |
HIGHLIGHT_OUTLINE
Invert the annotation’s border. |
static int |
HIGHLIGHT_PUSH
Display the annotation as if it were being pushed below the surface of the page. |
| Method Summary | |
|---|---|
static LinkAnnotation |
createInstance(PdfDocument doc)
Allows the creation of a new Link Annotation into the Specified document. |
AbstractAction |
getAction()
Returns the Action associated with this link annotation. |
LocalPageDestination |
getDestination()
Returns the destination currently registered with this Link Annotation. |
int |
getHighlightMode()
Returns the current visual effect to be used by a PDF Viewer application when the mouse button is pressed or held down inside the active area of the Link Annotation. |
void |
setAction(AbstractAction action)
Sets the Action to be associated with this link annotation. |
void |
setDestination(LocalPageDestination destination)
Sets the destination currently to be registered with this action. |
void |
setHighlightMode(int mode)
Sets the visual effect to be used by a PDF Viewer application when the mouse button is pressed or held down inside the active area of the Link Annotation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HIGHLIGHT_INVERT
public static final int HIGHLIGHT_NONE
public static final int HIGHLIGHT_OUTLINE
public static final int HIGHLIGHT_PUSH
| Method Detail |
|---|
public static LinkAnnotation createInstance(PdfDocument doc)
throws PdfException,
java.io.IOException
The usage of this method requires the acquision of the Module jPDF Creator or jPDF Template
doc - The Document into which the Annotation should be created.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public AbstractAction getAction()
throws PdfException,
java.io.IOException
Note: Action and Destination are mutually exclusive in Link annotation. Both can not be set on the same object.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public LocalPageDestination getDestination()
throws PdfException,
java.io.IOException
Note: Action and Destination are mutually exclusive in Link annotation. Both can not be set on the same object.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public int getHighlightMode()
throws PdfException,
java.io.IOException
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setAction(AbstractAction action)
throws PdfException,
java.io.IOException
Note: Action and Destination are mutually exclusive in Link annotation. Both can not be set on the same object.
action - The Action to be set
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setDestination(LocalPageDestination destination)
throws PdfException,
java.io.IOException
Note: Action and Destination are mutually exclusive in Link annotation. Both can not be set on the same object.
destination - The destination object.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setHighlightMode(int mode)
throws PdfException,
java.io.IOException
mode - The highlight mode (one of the HIGHLIGHT_XXX Constant defined
in this object).
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||