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.

Licensing:
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:


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
 ResourceType getResourceType()
          Gets the type of resource.
 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

Overrides:
getRequiredPdfObjects in class Resource

getResourceType

public ResourceType getResourceType()
Gets the type of resource.

Overrides:
getResourceType in class Resource
See Also:
ResourceType

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 DynamicPDFTM v4.0.1 for Java generated on October 06, 2006
© Copyright 2006, ceTe Software