org.apache.fop.pdf
Class PDFAnnotList

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

public class PDFAnnotList
extends PDFObject

class representing an object which is a list of annotations. This PDF object is a list of references to /Annot objects. So far we are dealing only with links.


Constructor Summary
PDFAnnotList(int number)
          create a /Annots object.

Method Summary
 voidaddLink(PDFLink link)
          add an /Annot object of /Subtype /Link.
 intgetCount()
          get the count of /Annot objects
 byte[]toPDF()
          represent the object in PDF

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

Constructor Detail

PDFAnnotList

public PDFAnnotList(int number)
create a /Annots object.
Parameters:
number - the object's number
Method Detail

addLink

public void addLink(PDFLink link)
add an /Annot object of /Subtype /Link.
Parameters:
link - the PDFLink to add.

getCount

public int getCount()
get the count of /Annot objects
Returns: the number of links

toPDF

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

Association Links

to Class java.util.Vector

the /Annot objects