nl.lxtreme.ols.api.data.annotation
Interface AnnotationListener


public interface AnnotationListener

Can be used to create a service that listens for the addition/removal of annotation on channel data.


Method Summary
 void clearAnnotations()
          Called when all annotations for all channels need to be cleared.
 void clearAnnotations(int aChannelIdx)
          Called when the annotations for a single channel need to be cleared.
 void onAnnotation(Annotation<?> aAnnotation)
          Called for each annotation.
 

Method Detail

clearAnnotations

void clearAnnotations()
Called when all annotations for all channels need to be cleared.

Called before any annotation is added.


clearAnnotations

void clearAnnotations(int aChannelIdx)
Called when the annotations for a single channel need to be cleared.

Called before any annotation is added.

Parameters:
aChannelIdx - the channel index to clear the annotation for, >= 0 && < 32.

onAnnotation

void onAnnotation(Annotation<?> aAnnotation)
Called for each annotation.

Parameters:
aAnnotation - the (new) annotation, cannot be null.


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.