public interface IAnnotationManager
selectAnnotationComponent(AnnotationComponent)
and deselectAnnotationComponent(AnnotationComponent)
.
Listeners can register with this class with addSelectionListener(IAnnotSelectionListener)
.
An implementation of this class can be obtained from the main class in your library, i.e. PDFViewerBean or PDFDocument.
Modifier and Type | Method and Description |
---|---|
void |
addComponentToSelection(AnnotationComponent ac)
Adds an annotation component to the list of selected annotations.
|
void |
addSelectionListener(IAnnotSelectionListener listener)
Adds a selection listener to the manager.
|
void |
clearSelection()
Clears the current annotation component selection.
|
void |
deselectAnnotationComponent(AnnotationComponent ac)
Deselects an annotation.
|
Vector<AnnotationComponent> |
getSelectedComponents()
Returns a list of annotation components that are selected.
|
boolean |
isSelected(AnnotationComponent ac)
Returns a flag that indicates whether the selection component is
selected.
|
boolean |
removeSelectionListener(IAnnotSelectionListener listener)
Removes the specified selection listener so that it no longer receives annotation selection events from the manager.
|
void |
selectAnnotationComponent(AnnotationComponent ac)
Selects an annotation.
|
void |
selectAnnotationComponents(AnnotationComponent[] acs)
Selects a list of annotations.
|
void addComponentToSelection(AnnotationComponent ac)
ac
- The annotation component to addvoid addSelectionListener(IAnnotSelectionListener listener)
listener
- The new listenerboolean removeSelectionListener(IAnnotSelectionListener listener)
listener
- The listener to removevoid clearSelection()
void deselectAnnotationComponent(AnnotationComponent ac)
ac
- The annotation to deselectVector<AnnotationComponent> getSelectedComponents()
boolean isSelected(AnnotationComponent ac)
ac
- The annotation componentvoid selectAnnotationComponent(AnnotationComponent ac)
ac
- The annotation to selectvoid selectAnnotationComponents(AnnotationComponent[] acs)
acs
- The annotations to select