DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class Resource

java.lang.Object
  extended by com.cete.dynamicpdf.Resource
Direct Known Subclasses:
Annotation, ColorSpace, DocumentJavaScriptList, DocumentPackage, EmbeddedFileList, EmbeddedFileResource, Font, Form, FormField, IccProfile, ImageData, ImportedPageContents, JavaScriptResource, OperatorWriter, SingleByteEncodingResource, Tag, TransparencyGroup.Transparency, XmpMetadata

public abstract class Resource
extends java.lang.Object

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

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


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.
 int getRequiredPdfObjects()
          Gets the number of PDF objects required by the resource.
 ResourceType getResourceType()
          Gets the type of 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.

Returns:
the unique ID of the resource.

getRequiredPdfObjects

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

Returns:
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

getResourceType

public ResourceType getResourceType()
Gets the type of resource.

Returns:
the type of resource.
See Also:
ResourceType

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