org.foray.pdf.object
Class PDFAnnotation

java.lang.Object
  extended by org.foray.pdf.object.PDFObject
      extended by org.foray.pdf.object.PDFAnnotation
Direct Known Subclasses:
PDFLink

public abstract class PDFAnnotation
extends PDFObject

Abstract superclass for /Annot objects.


Field Summary
 
Fields inherited from class org.foray.pdf.object.PDFObject
EOL, MSG_EOL, XREF_EOL
 
Constructor Summary
PDFAnnotation(PDFDocument doc, Rectangle2D r)
          Create objects associated with a link annotation (GoToR).
 
Method Summary
 Rectangle2D getRectangle()
          Returns the rectange for this annotation.
 
Methods inherited from class org.foray.pdf.object.PDFObject
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFAnnotation

public PDFAnnotation(PDFDocument doc,
                     Rectangle2D r)
Create objects associated with a link annotation (GoToR).

Parameters:
doc - The PDF document being built.
r - The rectangle which outlines the link.
Method Detail

getRectangle

public Rectangle2D getRectangle()
Returns the rectange for this annotation.

Returns:
Returns the rectangle.


Copyright © 2017. All rights reserved.