org.icepdf.ri.common
Class MyAnnotationCallback

java.lang.Object
  extended by org.icepdf.ri.common.MyAnnotationCallback
All Implemented Interfaces:
org.icepdf.core.AnnotationCallback

public class MyAnnotationCallback
extends java.lang.Object
implements org.icepdf.core.AnnotationCallback

This class represents a basic implemenation of the AnnotationCallback

Since:
2.6
Author:
ICEsoft Technologies, Inc.

Constructor Summary
MyAnnotationCallback(org.icepdf.core.views.DocumentViewController documentViewController)
           
 
Method Summary
 void newAnnotation(org.icepdf.core.views.PageViewComponent pageComponent, java.awt.Rectangle rect)
          New annotation created with view tool.
 void pageAnnotationsInitialized(org.icepdf.core.pobjects.Page page)
          Implemented Annotation Callback method.
 void proccessAnnotationAction(org.icepdf.core.pobjects.annotations.Annotation annotation)
          Implemented Annotation Callback method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyAnnotationCallback

public MyAnnotationCallback(org.icepdf.core.views.DocumentViewController documentViewController)
Method Detail

proccessAnnotationAction

public void proccessAnnotationAction(org.icepdf.core.pobjects.annotations.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.

Specified by:
proccessAnnotationAction in interface org.icepdf.core.AnnotationCallback
Parameters:
annotation - annotation that was activated by a user via the PageViewComponent.

pageAnnotationsInitialized

public void pageAnnotationsInitialized(org.icepdf.core.pobjects.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

Specified by:
pageAnnotationsInitialized in interface org.icepdf.core.AnnotationCallback
Parameters:
page - page that has been initialized. The pages annotations are available via an accessor method.

newAnnotation

public void newAnnotation(org.icepdf.core.views.PageViewComponent pageComponent,
                          java.awt.Rectangle rect)
New annotation created with view tool.

Specified by:
newAnnotation in interface org.icepdf.core.AnnotationCallback
Parameters:
pageComponent - page that annotation was added to.
rect - annotation bounds