edu.northwestern.at.wordhoard.swing.annotations
Interface AnnotationListener

All Known Implementing Classes:
AnnotationAdapter

public interface AnnotationListener

An annotation listener.

The listener interface for receiving annotation model state change events. See AnnotationModel for details.


Method Summary
 void annotationSet(int index, Attachment annotation)
          Invoked when a new annotation is set.
 void arraySet(Attachment[] annotations)
          Invoked when the annotation array is set.
 void cleared()
          Invoked when the annotations are cleared.
 void extraMessageSet(java.lang.String message)
          Invoked when the extra annotation message is set.
 void markersShownOrHidden(boolean shown)
          Invoked when annotation markers are shown or hidden.
 void noAnnotationsMessageSet(java.lang.String message)
          Invoked when the no annotations message is set.
 void panelShownOrHidden(boolean shown)
          Invoked when the annotation panel is shown or hidden.
 void reset()
          Invoked when an annotation is edited or deleted.
 

Method Detail

markersShownOrHidden

void markersShownOrHidden(boolean shown)
                          throws PersistenceException
Invoked when annotation markers are shown or hidden.

Parameters:
shown - True if markers shown, false if hidden.
Throws:
PersistenceException

panelShownOrHidden

void panelShownOrHidden(boolean shown)
Invoked when the annotation panel is shown or hidden.

Parameters:
shown - True if panel shown, false if hidden.

arraySet

void arraySet(Attachment[] annotations)
Invoked when the annotation array is set.

Parameters:
annotations - Array of annotations.

cleared

void cleared()
Invoked when the annotations are cleared.


reset

void reset()
Invoked when an annotation is edited or deleted.


annotationSet

void annotationSet(int index,
                   Attachment annotation)
Invoked when a new annotation is set.

This method is invoked only if the annotation panel is shown.

Parameters:
index - Index of annotation.
annotation - Attachment.

noAnnotationsMessageSet

void noAnnotationsMessageSet(java.lang.String message)
Invoked when the no annotations message is set.

Parameters:
message - The no annotations message.

extraMessageSet

void extraMessageSet(java.lang.String message)
Invoked when the extra annotation message is set.

Parameters:
message - The extra annotation message.