org.apache.fop.pdf
Class PDFGoTo
- PDFWritable
class representing a /GoTo object.
This can either have a Goto to a page reference and location
or to a specified PDF reference string.
PDFGoTo(String pageReference)- create a /GoTo object.
|
PDFGoTo(String pageReference, Point2D position)- create a /GoTo object.
|
boolean | equals(Object obj)- Check if this equals another object.
|
String | getAction()- Get the PDF reference for the GoTo action.
|
void | setDestination(String dest)- Set the destination string for this Goto.
|
void | setPageReference(String pageReference)- Sets page reference after object has been created
|
void | setPosition(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
|
String | toPDFString()
|
encode, encodeString, encodeText, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, output, referencePDF, setDocument, setObjectNumber, toInlinePDFString, toPDF, toPDFString |
PDFGoTo
public PDFGoTo(String pageReference)
create a /GoTo object.
pageReference - the pageReference represented by this object
PDFGoTo
public PDFGoTo(String pageReference,
Point2D position) create a /GoTo object.
pageReference - the PDF reference to the target pageposition - the target area's on-page coordinates in points
equals
public boolean equals(Object obj)
Check if this equals another object.
obj - the object to compare
- true if this equals other object
getAction
public String getAction()
Get the PDF reference for the GoTo action.
- getAction in interface PDFAction
- the PDF reference for the action
setDestination
public void setDestination(String dest)
Set the destination string for this Goto.
dest - the PDF destination string
setPageReference
public void setPageReference(String pageReference)
Sets page reference after object has been created
pageReference - the new page reference to use
setPosition
public void setPosition(Point2D position)
Sets the target (X,Y) position
position - the target's on-page coordinates in points
setXPosition
public void setXPosition(float xPosition)
Sets the x Position to jump to
setYPosition
public void setYPosition(float yPosition)
Sets the Y position to jump to
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.