|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdfViewer.AnnotationManager
This object manages the selection cycle for annotations. The class implements listeners to handle mouse and key events so that it can clear and set the selected annotations(s). The class also provides method to drive annotation selection through the API.
| Constructor Summary | |
AnnotationManager(PDFViewerBean bean)
Construct a new annotation manager. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
|
void |
addAnnotToSelection(AnnotationComponent ac)
Adds an annotation component to the list of selected annotations. |
void |
addSelectionListener(IAnnotSelectionListener listener)
Adds a selection listener to the manager. |
void |
addWidgetToSelection(AnnotationComponent ac)
Adds a widget component to the list of selected components. |
void |
clearSelection()
Clears the current annotation selection. |
void |
deselectAnnotation(AnnotationComponent ac)
De-selects a specific annotation. |
void |
documentChanged(DocumentEvent de)
Method to fulfill the IDocumentListener interface. |
Vector |
getSelectedAnnots()
Returns a list of annotations that are selected. |
Vector |
getSelectedWidgets()
Returns a list of selected widgets. |
boolean |
isSelected(AnnotationComponent ac)
Returns a flag that indicates whether the selection component is selected. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
selectAnnot(AnnotationComponent ac)
Selects an annotation. |
void |
selectAnnots(AnnotationComponent[] acs)
Selects a list of annotations. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AnnotationManager(PDFViewerBean bean)
bean - The PDFViewerBean that this annotation manager is tied to.| Method Detail |
public void addSelectionListener(IAnnotSelectionListener listener)
listener - The new listener.public void addWidgetToSelection(AnnotationComponent ac)
ac - The widget componentpublic void addAnnotToSelection(AnnotationComponent ac)
ac - The annotation component to add.public void clearSelection()
public void deselectAnnotation(AnnotationComponent ac)
ac - Thepublic Vector getSelectedAnnots()
public Vector getSelectedWidgets()
public boolean isSelected(AnnotationComponent ac)
ac - The annotation component
public void selectAnnot(AnnotationComponent ac)
ac - The annotation to select.public void selectAnnots(AnnotationComponent[] acs)
acs - The annotations to selectpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void documentChanged(DocumentEvent de)
documentChanged in interface IDocumentListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||