DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class Annotation

java.lang.Object
  |
  +--com.cete.dynamicpdf.Resource
        |
        +--com.cete.dynamicpdf.Annotation

public class Annotation
extends Resource

Class represents an annotation resource.


Constructor Summary
Annotation(float left, float top, float right, float bottom, IAnnotation iAnnotation)
          Initializes a new instance of the Annotation class.
 
Method Summary
 void draw(DocumentWriter writer)
          Draws the annotation to the given DocumentWriter object.
 float getBottom()
          Gets the bottom Y coordinate of the annotation.
 float getLeft()
          Gets the left X coordinate of the annotation.
 int getRequiredPdfObjects()
          Gets the number of PDF objects required by the annotation
 float getRight()
          Gets the right X coordinate of the annotation.
 float getTop()
          Gets the top Y coordinate of the annotation
 
Methods inherited from class com.cete.dynamicpdf.Resource
getUid, newUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Annotation

public Annotation(float left,
                  float top,
                  float right,
                  float bottom,
                  IAnnotation iAnnotation)
Initializes a new instance of the Annotation class.

Parameters:
left - The left X coordinate of the annotation.
top - The top Y coordinate of the annotation.
right - The right X coordinate of the annotation.
bottom - The bottom Y coordinate of the annotation.
iAnnotation -
See Also:
Annotation
Method Detail

getRequiredPdfObjects

public int getRequiredPdfObjects()
Gets the number of PDF objects required by the annotation

Specified by:
getRequiredPdfObjects in class Resource

getLeft

public float getLeft()
Gets the left X coordinate of the annotation.


getRight

public float getRight()
Gets the right X coordinate of the annotation.


getTop

public float getTop()
Gets the top Y coordinate of the annotation


getBottom

public float getBottom()
Gets the bottom Y coordinate of the annotation.


draw

public void draw(DocumentWriter writer)
Draws the annotation to the given DocumentWriter object.

Specified by:
draw in class Resource
Parameters:
writer - DocumentWriter object to receive the annotation's output.
See Also:
DocumentWriter

DynamicPDF by ceTe Software

API Reference for DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software