public class PDFGoTo extends PDFAction
DATE_FORMAT, log
Constructor and Description |
---|
PDFGoTo(java.lang.String pageReference)
create a /GoTo object.
|
PDFGoTo(java.lang.String pageReference,
java.awt.geom.Point2D position)
create a /GoTo object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Check if this equals another object.
|
java.lang.String |
getAction()
Get the PDF reference for the GoTo action.
|
void |
setDestination(java.lang.String dest)
Set the destination string for this Goto.
|
void |
setPageReference(java.lang.String pageReference)
Sets page reference after object has been created
|
void |
setPosition(java.awt.geom.Point2D position)
Sets the target (X,Y) position
|
void |
setXPosition(float xPosition)
Sets the x Position to jump to
|
void |
setYPosition(float yPosition)
Sets the Y position to jump to
|
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 PDFGoTo(java.lang.String pageReference)
pageReference
- the pageReference represented by this objectpublic PDFGoTo(java.lang.String pageReference, java.awt.geom.Point2D position)
pageReference
- the PDF reference to the target pageposition
- the target area's on-page coordinates in pointspublic void setPageReference(java.lang.String pageReference)
pageReference
- the new page reference to usepublic void setPosition(java.awt.geom.Point2D position)
position
- the target's on-page coordinates in pointspublic void setXPosition(float xPosition)
xPosition
- x positionpublic void setYPosition(float yPosition)
yPosition
- y positionpublic void setDestination(java.lang.String dest)
dest
- the PDF destination stringpublic java.lang.String getAction()
public 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.