jPod PDF library

de.intarsys.pdf.app.annotation
Class AnnotationFactoryTools

java.lang.Object
  extended by de.intarsys.pdf.app.annotation.AnnotationFactoryTools

public class AnnotationFactoryTools
extends Object

A tool class to ease life with annotation creation handling.


Constructor Summary
AnnotationFactoryTools()
           
 
Method Summary
static PDAnnotation createAnnotation(COSName type, PDPage page, Rectangle2D rect, Map attributes)
          Create a new PDAnnotation from scratch.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationFactoryTools

public AnnotationFactoryTools()
Method Detail

createAnnotation

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

Parameters:
type - The COSName indicating the annotations type.
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 or null
Throws:
de.intarsys.tools.reflect.ObjectCreationException

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.