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 a PDFViewerBean with
PDFViewerBean#getAnnotationManager
.
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 |
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.
|
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 listenervoid clearSelection()
void deselectAnnotationComponent(AnnotationComponent ac)
ac
- The annotation to deselectVector 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