de.intarsys.pdf.app.annotation
Class AnnotationFactoryTools
java.lang.Object
de.intarsys.pdf.app.annotation.AnnotationFactoryTools
public class AnnotationFactoryTools
- extends Object
A tool class to ease life with annotation creation handling.
AnnotationFactoryTools
public AnnotationFactoryTools()
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
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.