com.qoppa.pdfNotes
Class AnnotationManagerNotes

java.lang.Object
  extended bycom.qoppa.pdfViewer.AnnotationManager
      extended bycom.qoppa.pdfNotes.AnnotationManagerNotes
All Implemented Interfaces:
ActionListener, EventListener, IDocumentListener, KeyListener, MouseListener

public class AnnotationManagerNotes
extends AnnotationManager

This class overrides the jPDFViewer annotation manager to add functionality to annotations.

Author:
Qoppa Software

Constructor Summary
AnnotationManagerNotes(PDFNotesBean bean)
          Construct a new annotation manager.
 
Method Summary
 boolean canGroupSelection()
           
 boolean canUngroupSelection()
           
 boolean copySelectedAnnots()
           
 void deleteSelectedAnnots()
          Deletes all the annotations that are seleted.
 void flattenSelectedAnnots()
          Flatten all the annotations that are selected.
 QAnnotation getCurrentGroupParent()
           
 void groupSelection(AnnotationComponent parent)
          Makes all the annotations that are selected be members of a group.
 void keyPressed(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
 void moveSelected(int deltaX, int deltaY)
           
 void unGroupSelection()
          Removes grouping of annotations.
 void updateModelState(Annotation annot, String model, String state)
           
 void updateSelectedModelStates(String model, String state)
           
 
Methods inherited from class com.qoppa.pdfViewer.AnnotationManager
actionPerformed, addAnnotToSelection, addSelectionListener, addWidgetToSelection, clearSelection, deselectAnnotation, documentChanged, getSelectedAnnots, getSelectedWidgets, isSelected, keyReleased, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, selectAnnot, selectAnnots
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationManagerNotes

public AnnotationManagerNotes(PDFNotesBean bean)
Construct a new annotation manager.

Parameters:
bean - The PDFNotesBean that this annotation manager is tied to.
Method Detail

copySelectedAnnots

public boolean copySelectedAnnots()

deleteSelectedAnnots

public void deleteSelectedAnnots()
Deletes all the annotations that are seleted.


flattenSelectedAnnots

public void flattenSelectedAnnots()
Flatten all the annotations that are selected.


groupSelection

public void groupSelection(AnnotationComponent parent)
Makes all the annotations that are selected be members of a group.

Parameters:
parent - The "main" or "parent" annotation in the group.

canGroupSelection

public boolean canGroupSelection()

canUngroupSelection

public boolean canUngroupSelection()

unGroupSelection

public void unGroupSelection()
Removes grouping of annotations. After this call, the annotations in the group become independent annotations.


getCurrentGroupParent

public QAnnotation getCurrentGroupParent()

updateModelState

public void updateModelState(Annotation annot,
                             String model,
                             String state)

updateSelectedModelStates

public void updateSelectedModelStates(String model,
                                      String state)

moveSelected

public void moveSelected(int deltaX,
                         int deltaY)

keyPressed

public void keyPressed(KeyEvent e)
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class AnnotationManager

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener
Overrides:
keyTyped in class AnnotationManager