be.hogent.tarsos.sampled.pitch
Interface AnnotationListener

All Known Implementing Classes:
CommandPanel, ControlPanel, Frame, HistogramData, PitchClassHistogramPanel, PitchContour

public interface AnnotationListener

Elements interested in representing annotations should implement this interface. The implementor should be able to clear all annotations and reset a subset of annotations rather quickly.


Method Summary
 void addAnnotation(Annotation annotation)
          Add an annotation to the element.
 void annotationsAdded()
          Is called after a list of annotations is added.
 void clearAnnotations()
          Clears all annotations.
 void extractionFinished()
          A hook to react to annotation extraction.
 void extractionStarted()
          A hook to react to annotation extraction.
 

Method Detail

addAnnotation

void addAnnotation(Annotation annotation)
Add an annotation to the element.

Parameters:
annotation - The annotation to add: this method is called a lot. After a clearAnnotations() call a very large number of annotations is possible. So efficiently adding annotations should be possible or threaded.

clearAnnotations

void clearAnnotations()
Clears all annotations.


annotationsAdded

void annotationsAdded()
Is called after a list of annotations is added.


extractionStarted

void extractionStarted()
A hook to react to annotation extraction. This method is called when pitch annotations starts on an audio file.


extractionFinished

void extractionFinished()
A hook to react to annotation extraction. This method is called when pitch annotations is completed.