org.icepdf.core
Interface AnnotationCallback


public interface AnnotationCallback

Annotation callback allows developers to control how Annotation and their actions are executed. Developers also have have the option to change annotation visibility attributes such as border style, border color and border stroke width before the annotation is painted.

Since:
2.6
Author:
ICEsoft Technologies, Inc.
See Also:
DocumentViewController.setAnnotationCallback(AnnotationCallback)

Method Summary
 void newAnnotation(PageViewComponent page, java.awt.Rectangle rect)
          New annotation created with view tool.
 void pageAnnotationsInitialized(Page page)
          Implemented Annotation Callback method.
 void proccessAnnotationAction(Annotation annotation)
          Implemented Annotation Callback method.
 

Method Detail

proccessAnnotationAction

void proccessAnnotationAction(Annotation annotation)

Implemented Annotation Callback method. When an annotation is activated in a PageViewComponent it passes the annotation to this method for processing. The PageViewComponent take care of drawing the annotation states but it up to this method to process the annotation.

Parameters:
annotation - annotation that was activated by a user via the PageViewComponent.

pageAnnotationsInitialized

void pageAnnotationsInitialized(Page page)

Implemented Annotation Callback method. This method is called when a pages annotations been initialized but before the page has been painted. This method blocks the

Parameters:
page - page that has been initialized. The pages annotations are available via an accessor method.

newAnnotation

void newAnnotation(PageViewComponent page,
                   java.awt.Rectangle rect)
New annotation created with view tool.

Parameters:
page - page that annotation was added to.
rect - new annotation bounds.