public class

AnnotManager

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.tools.AnnotManager

Class Overview

This class is responsible for generating local annotation changes XFDF string and merging remote annotation changes XFDF string

Summary

Nested Classes
interface AnnotManager.AnnotItem Annotation custom properties  
interface AnnotManager.AnnotationAction Annotation actions  
interface AnnotManager.AnnotationSyncingListener This interface can be used to monitor local annotation changes, which can then be forwarded to a remote server. 
Public Constructors
AnnotManager(ToolManager toolManager, String userId, AnnotManager.AnnotationSyncingListener listener)
Initializes annotation manager for annotation syncing
AnnotManager(ToolManager toolManager, String userId, String userName, AnnotManager.AnnotationSyncingListener listener)
Initializes annotation manager for annotation syncing
AnnotManager(ToolManager toolManager, String userId, String userName, Bundle initialAnnot, AnnotManager.AnnotationSyncingListener listener)
Initializes annotation manager for annotation syncing
Public Methods
void jumpToAnnot(String annotId, int page)
Jump to an annotation by id and selects it
void jumpToAnnot(String annotId)
Jump to an annotation by id
void onRemoteChange(String incoming)
Used when annotation change event is received from remote service
void setAnnotationSyncingListener(AnnotManager.AnnotationSyncingListener listener)
Sets AnnotationSyncingListener
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AnnotManager (ToolManager toolManager, String userId, AnnotManager.AnnotationSyncingListener listener)

Initializes annotation manager for annotation syncing

Parameters
toolManager the ToolManager
userId the unique identifier of the current user
listener the AnnotManager.AnnotationSyncingListener

public AnnotManager (ToolManager toolManager, String userId, String userName, AnnotManager.AnnotationSyncingListener listener)

Initializes annotation manager for annotation syncing

Parameters
toolManager the ToolManager
userId the unique identifier of the current user
listener the AnnotManager.AnnotationSyncingListener

public AnnotManager (ToolManager toolManager, String userId, String userName, Bundle initialAnnot, AnnotManager.AnnotationSyncingListener listener)

Initializes annotation manager for annotation syncing

Parameters
toolManager the ToolManager
userId the unique identifier of the current user
initialAnnot if set, viewer will jump to the set annotation automatically
listener the AnnotManager.AnnotationSyncingListener

Public Methods

public void jumpToAnnot (String annotId, int page)

Jump to an annotation by id and selects it

Parameters
annotId annotation id
page xfdf zero-indexed page number

public void jumpToAnnot (String annotId)

Jump to an annotation by id

Parameters
annotId the annotation id

public void onRemoteChange (String incoming)

Used when annotation change event is received from remote service

Parameters
incoming the XFDF command string

public void setAnnotationSyncingListener (AnnotManager.AnnotationSyncingListener listener)

Sets AnnotationSyncingListener

Parameters
listener the listener