edu.northwestern.at.wordhoard.swing.annotations
Class AnnotationAdapter

java.lang.Object
  extended by edu.northwestern.at.wordhoard.swing.annotations.AnnotationAdapter
All Implemented Interfaces:
AnnotationListener

public abstract class AnnotationAdapter
extends java.lang.Object
implements AnnotationListener

An annotation adapter.

An abstract adapter class for receiving annotation events. The methods in this class are empty. This class exists as a convenience for creating AnnotationListener objects.


Constructor Summary
AnnotationAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationAdapter

public AnnotationAdapter()
Method Detail

markersShownOrHidden

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

Specified by:
markersShownOrHidden in interface AnnotationListener
Parameters:
shown - True if markers shown, false if hidden.
Throws:
PersistenceException

panelShownOrHidden

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

Specified by:
panelShownOrHidden in interface AnnotationListener
Parameters:
shown - True if panel shown, false if hidden.

arraySet

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

Specified by:
arraySet in interface AnnotationListener
Parameters:
annotations - Array of annotations.

cleared

public void cleared()
Invoked when the annotations are cleared.

Specified by:
cleared in interface AnnotationListener

reset

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

Specified by:
reset in interface AnnotationListener

annotationSet

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

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

Specified by:
annotationSet in interface AnnotationListener
Parameters:
index - Index of annotation.
annotation - Attachment.

noAnnotationsMessageSet

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

Specified by:
noAnnotationsMessageSet in interface AnnotationListener
Parameters:
message - The no annotations message.

extraMessageSet

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

Specified by:
extraMessageSet in interface AnnotationListener
Parameters:
message - The extra annotation message.