|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.ri.common.MyAnnotationCallback
public class MyAnnotationCallback
This class represents a basic implementation of the AnnotationCallback
| Constructor Summary | |
|---|---|
MyAnnotationCallback(DocumentViewController documentViewController)
|
|
| Method Summary | |
|---|---|
void |
newAnnotation(PageViewComponent pageComponent,
AnnotationComponent annotationComponent)
New annotation created with view tool. |
void |
pageAnnotationsInitialized(org.icepdf.core.pobjects.Page page)
Implemented Annotation Callback method. |
void |
processAnnotationAction(org.icepdf.core.pobjects.annotations.Annotation annotation,
org.icepdf.core.pobjects.actions.Action action,
int x,
int y)
Implemented Annotation Callback method. |
void |
removeAnnotation(PageViewComponent pageComponent,
AnnotationComponent annotationComponent)
Remove the annotation and ready state for save. |
void |
updateAnnotation(AnnotationComponent annotationComponent)
Update the annotation and ready state for save. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MyAnnotationCallback(DocumentViewController documentViewController)
| Method Detail |
|---|
public void processAnnotationAction(org.icepdf.core.pobjects.annotations.Annotation annotation,
org.icepdf.core.pobjects.actions.Action action,
int x,
int y)
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.
processAnnotationAction in interface AnnotationCallbackannotation - annotation that was activated by a user via the
PageViewComponent.action - the action event that was fired when the annotation was clicked. This can be
the A or AA entry.x - x-coordinate of input device click that initiated the annotation action.y - y-coordinate of input device click that initiated the annotation action.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
pageAnnotationsInitialized in interface AnnotationCallbackpage - page that has been initialized. The pages annotations are
available via an accessor method.
public void newAnnotation(PageViewComponent pageComponent,
AnnotationComponent annotationComponent)
newAnnotation in interface AnnotationCallbackpageComponent - page that annotation was added to.annotationComponent - component that will be created.public void updateAnnotation(AnnotationComponent annotationComponent)
updateAnnotation in interface AnnotationCallbackannotationComponent - annotation component to be added to page.
public void removeAnnotation(PageViewComponent pageComponent,
AnnotationComponent annotationComponent)
removeAnnotation in interface AnnotationCallbackannotationComponent - annotation component to be added to page.pageComponent - page that annotation should be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||