org.apache.fop.pdf
public class PDFLink extends PDFObject
Modifier and Type | Field and Description |
---|---|
static int |
EXTERNAL
Used to represent an external link.
|
static int |
INTERNAL
Used to represent an internal link.
|
DATE_FORMAT, log
Constructor and Description |
---|
PDFLink(java.awt.geom.Rectangle2D r)
create objects associated with a link annotation (GoToR)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Check if this equals another object.
|
void |
setAction(PDFAction action)
Set the pdf action for this link.
|
java.lang.String |
toPDFString()
This method returns a String representation of the PDF object.
|
encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF
public static final int EXTERNAL
public static final int INTERNAL
public PDFLink(java.awt.geom.Rectangle2D r)
r
- the rectangle of the link hotspot in absolute coordinatespublic void setAction(PDFAction action)
action
- the pdf action that is activated for this linkpublic java.lang.String toPDFString()
toPDFString
in class PDFObject
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compareCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.