intarsys PDF library API

de.intarsys.pdf.app.appearance
Class NullAppearanceCreator

java.lang.Object
  extended by de.intarsys.pdf.app.appearance.NullAppearanceCreator
All Implemented Interfaces:
IAppearanceCreator

public class NullAppearanceCreator
extends Object
implements IAppearanceCreator

Create an empty annotation appearance.


Constructor Summary
NullAppearanceCreator()
           
 
Method Summary
 PDAppearance createAppearance(PDAnnotation annotation, PDAppearance appearance)
          Create a PDAppearance suitable to display annotation in its current state.
 COSName getAnnotationType()
          The type of annotations this handler can process.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullAppearanceCreator

public NullAppearanceCreator()
Method Detail

createAppearance

public PDAppearance createAppearance(PDAnnotation annotation,
                                     PDAppearance appearance)
Description copied from interface: IAppearanceCreator
Create a PDAppearance suitable to display annotation in its current state. The implementation should use "appearance" when set, if not should try to use the annotations PDAppearance. If none of both is set, it should create a new one. The method should return the appearance it worked upon.

The code should NOT manipulate (write to) the annotation. If a new PDAppearance is to be created, it should be created and returned as the methods result without connecting to the annotation.

To allow for "daisy chaining" calls, a appearance parameter is provided. If it is null, the code should lookup the appearance in the annotation. If nothing there, it should create a new one (again: without connecting to the annotation).

Specified by:
createAppearance in interface IAppearanceCreator
Returns:

getAnnotationType

public COSName getAnnotationType()
Description copied from interface: IAppearanceCreator
The type of annotations this handler can process.

This is for example /Ink or /Circle.

Specified by:
getAnnotationType in interface IAppearanceCreator
Returns:
The type of annotations this handler can process.

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.