|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.pdf2.PDFObject
org.faceless.pdf2.PDFMap
org.faceless.pdf2.PDFAnnotation
org.faceless.pdf2.AnnotationLink
A subtype new PDFAnnotation
that performs the specified action
when clicked. This can be used to create an HTML-style hyperlink,
play a sound, or perform some other PDFAction
.
Constructor Summary | |
AnnotationLink()
Create a new Link annotation with a default setStyle(org.faceless.pdf2.PDFStyle) of null |
Method Summary | |
PDFAction |
getAction()
Return the action performed by this hyperlink |
float[] |
getRectangle()
Return the rectangle this annotation applies to on the page, or null if no rectangle applies for this type of annotation. |
void |
setAction(PDFAction action)
Set the action for this hyperlink |
void |
setStyle(PDFStyle style)
Set the style for this hyperlink annotation. |
Methods inherited from class org.faceless.pdf2.PDFAnnotation |
equals, getCreationDate, getInReplyTo, getModifyDate, getPage, getSubject, getType, getUniqueID, isPrintable, isReadOnly, isVisible, setInReplyTo, setPage, setPrintable, setReadOnly, setRectangle, setSubject, setUniqueID, setVisible, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AnnotationLink()
setStyle(org.faceless.pdf2.PDFStyle)
of null
Method Detail |
public void setAction(PDFAction action)
public PDFAction getAction()
public float[] getRectangle()
PDFAnnotation
setRectangle()
method for a discussion on units.
getRectangle
in class PDFAnnotation
PDFAnnotation.setRectangle(float, float, float, float)
public void setStyle(PDFStyle style)
Set the style for this hyperlink annotation. Parameters from the style
that are used include LineColor
,
DashPattern
,
LineWeighting
and
FormStyle
(although Acrobat 4 and earlier
will ignore the FormStyle)
Alternatively the style may be null
to prevent
this link having any visible appearance on the page
style
- the style to draw the link in - may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |