DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class Annotation

java.lang.Object
  extended by com.cete.dynamicpdf.Resource
      extended by 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
Returns:
the number of PDF objects required by the annotation.

getResourceType

public ResourceType getResourceType()
Gets the type of resource.

Overrides:
getResourceType in class Resource
Returns:
the type of resource.
See Also:
ResourceType

getLeft

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

Returns:
the left X coordinate of the annotation.

getRight

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

Returns:
the right X coordinate of the annotation.

getTop

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

Returns:
the top Y coordinate of the annotation.

getBottom

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

Returns:
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 v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software