org.apache.fop.pdf
Class PDFGoTo

org.apache.fop.pdf.PDFObject
  |
  +--org.apache.fop.pdf.PDFGoTo

public class PDFGoTo
extends PDFObject

class representing a /GoTo object.


Constructor Summary
PDFGoTo(int number, String pageReference)
          create a /GoTo object.

Method Summary
 voidsetPageReference(String pageReference)
          Sets page reference after object has been created
 voidsetXPosition(int xPosition)
          Sets the x Position to jump to
 voidsetYPosition(int yPosition)
          Sets the Y position to jump to
 byte[]toPDF()
          represent the object in PDF

Methods inherited from class org.apache.fop.pdf.PDFObject
getNumber, referencePDF

Constructor Detail

PDFGoTo

public PDFGoTo(int number, String pageReference)
create a /GoTo object.
Parameters:
number - the object's number
pageReference - the pageReference represented by this object
Method Detail

setPageReference

public void setPageReference(String pageReference)
Sets page reference after object has been created
Parameters:
pageReference the - new page reference to use

setXPosition

public void setXPosition(int xPosition)
Sets the x Position to jump to
Parameters:
xPosition - x position

setYPosition

public void setYPosition(int yPosition)
Sets the Y position to jump to
Parameters:
yPosition - y position

toPDF

public byte[] toPDF()
represent the object in PDF
Returns: the PDF string

Association Links

to Class java.lang.String

the pageReference