jPod PDF library

de.intarsys.pdf.app.annotation
Interface IAnnotationFactory


public interface IAnnotationFactory

A factory for PDAnnotation instances. A new PDAnnotation is created on a dedicated page with a dedicated bounding rectangle. More attributes may be supported by the concrete IAnnotationFactory implementation and are looked up in the attributes.


Method Summary
 PDAnnotation createAnnotation(PDPage page, Rectangle2D rect, Map attributes)
          Create a new PDAnnotation from scratch.
 COSName getAnnotationType()
          The type of annotation this factory can create.
 

Method Detail

createAnnotation

PDAnnotation createAnnotation(PDPage page,
                              Rectangle2D rect,
                              Map attributes)
                              throws de.intarsys.tools.reflect.ObjectCreationException
Create a new PDAnnotation from scratch.

Parameters:
page - The page where the annotation is created.
rect - The rectangle bounds of the annotation.
attributes - More attributes that are required for annotation creation in their special IAnnotationFactory implementation.
Returns:
The newly created PDAnnotation
Throws:
de.intarsys.tools.reflect.ObjectCreationException

getAnnotationType

COSName getAnnotationType()
The type of annotation this factory can create.

This is for example /Ink or /Circle.

Returns:
The type of annotation this factory can create

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.