|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.pdf.PDFObject
com.elegantj.pdf.PDFGraphicsObject
com.elegantj.pdf.PDFAnnotation
com.elegantj.pdf.PDFLinkAnnotation
This class represents PDFLinkAnnotation object It functions as an HTML link
| Field Summary |
| Fields inherited from class com.elegantj.pdf.PDFAnnotation |
llX, llY, urX, urY |
| Fields inherited from class com.elegantj.pdf.PDFGraphicsObject |
BEVEL_JOINS, BUTT_CAPS, MITER_JOINS, ROUND_CAPS, ROUND_JOINS, SQUARE_CAPS |
| Constructor Summary | |
PDFLinkAnnotation(int x,
int y,
int width,
int height,
java.net.URL url)
Constructs a PDFLinkAnnotation object with default region of the destination page shown |
|
PDFLinkAnnotation(Page page,
int x,
int y,
int width,
int height,
int dest_X,
int dest_Y)
Constructs a PDFLinkAnnotation object |
|
| Method Summary | |
java.lang.Object |
clone()
Returns the clone of this object |
int |
getBorderWidth()
Method returns the width of the border of annotation |
int |
getZoomFactor()
Method returns the zoom factor of the destination page |
void |
setBorderWidth(int width)
Method which sets the width of the border for annotation |
void |
setColor(java.awt.Color color)
Method which sets the color for the link annotation's border |
void |
setZoomFactor(int zoomFactor)
Method which sets the zoom factor of the destination page Note : if you want to use default zoom then don't set it |
| Methods inherited from class com.elegantj.pdf.PDFObject |
getPDFObjectID, getPDFObjectRefStr, getPDFObjectType, setPDFObjectID, setPDFObjectType |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PDFLinkAnnotation(int x,
int y,
int width,
int height,
java.net.URL url)
x - The x coordinate of annotationy - The y coordinate of annotationwidth - The width of the annotationheight - The height of the annotationurl - The URL of the page which is opened on clicking this rectangle specified by x, y, width and height
public PDFLinkAnnotation(Page page,
int x,
int y,
int width,
int height,
int dest_X,
int dest_Y)
page - The destination pagex - The x coordinate of annotationy - The y coordinate of annotationwidth - The width of the annotationheight - The height of the annotationdest_X - The lower left x cordinate of destination pagedest_Y - The lower left y cordinate of destination page| Method Detail |
public void setZoomFactor(int zoomFactor)
zoomFactor - The zoom factor of the destination pagepublic int getZoomFactor()
public void setColor(java.awt.Color color)
color - the color for the link annotation's borderpublic void setBorderWidth(int width)
width - The width of the border for annotationpublic int getBorderWidth()
public java.lang.Object clone()
clone in class PDFAnnotation
|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||