DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class Resource

java.lang.Object
  |
  +--com.cete.dynamicpdf.Resource
Direct Known Subclasses:
Annotation, Font, Form, FormField, ImageData, ImportedPageContents, ImportedPageDataContents, PageWriter, SingleByteEncodingResource

public abstract class Resource
extends java.lang.Object

Class provides the base class from which all resources are derived.


Constructor Summary
protected Resource()
          Initializes a new instance of the Resource class using the next UID.
protected Resource(long uid)
          Initializes a new instance of the Resource class.
 
Method Summary
abstract  void draw(DocumentWriter writer)
          Draws the resource to the given DocumentWriter object.
abstract  int getRequiredPdfObjects()
          Gets the number of PDF objects required by the resource.
 long getUid()
          Gets the unique ID of the resource.
static long newUid()
          Generates a new unique ID for a resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

protected Resource()
Initializes a new instance of the Resource class using the next UID.

See Also:
Resource

Resource

protected Resource(long uid)
Initializes a new instance of the Resource class.

Parameters:
uid - A unique ID.
Method Detail

getUid

public long getUid()
Gets the unique ID of the resource.


getRequiredPdfObjects

public abstract int getRequiredPdfObjects()
Gets the number of PDF objects required by the resource.


draw

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

Parameters:
writer - DocumentWriter object to receive the resource's output.
See Also:
DocumentWriter

newUid

public static long newUid()
Generates a new unique ID for a resource.

Returns:
The generated unique ID.

DynamicPDF by ceTe Software

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