edu.uchsc.ccp.knowtator.event
Class EventHandler

java.lang.Object
  extended by edu.uchsc.ccp.knowtator.event.EventHandler

public class EventHandler
extends Object


Constructor Summary
protected EventHandler()
           
 
Method Summary
 void addAnnotationCreatedListener(AnnotationCreatedListener annotationCreatedListener)
           
 void addCurrentAnnotationsChangedListener(CurrentAnnotationsChangedListener currentAnnotationsChangedListener)
           
 void addFastAnnotateListener(FastAnnotateListener fastAnnotateListener)
           
 void addFilterChangedListener(FilterChangedListener filterChangedListener)
           
 void addNotifyTextChangeListener(NotifyTextChangeListener notifyTextChangeListener)
           
 void addRefreshAnnotationsDisplayListener(RefreshAnnotationsDisplayListener refreshSpanHighlightsListener)
           
 void addSelectedAnnotationChangeListener(SelectedAnnotationChangeListener selectedAnnotationChangeListener)
           
 void addSelectedClsChangeListener(SelectedClsChangeListener selectedClsChangeListener)
           
 void addSelectedSpanChangeListener(SelectedSpanChangeListener selectedSpanChangeListener)
           
 void addSpanEditListener(SpanEditListener spanEditListener)
           
 void dispose()
           
 void fireAnnotationCreated(SimpleInstance createdAnnotation)
          The preferred way of creating an annotation is via KnowtatorManager.createAnnotation.
 void fireCurrentAnnotationsChanged()
           
 void fireFastAnnotateAddCls(Frame frame)
           
 void fireFastAnnotateClsChange()
           
 void fireFastAnnotateQuit()
           
 void fireFastAnnotateRemoveCls(Frame frame)
           
 void fireFastAnnotateStart()
           
 void fireFilterChanged(SimpleInstance filter, boolean consensusMode)
           
 void fireNotifyTextChanged(String notifyText)
           
 void fireRefreshAnnotationsDisplay(boolean scrollToSelection)
           
 void fireSelectedAnnotationChanged(SimpleInstance selectedAnnotation)
          The preferred way of updating the currently selected annotation is via KnowtatorManager.setSelectedAnnotation().
 void fireSelectedClsChanged(Cls selectedCls)
          The preferred way of updating the currently selected cls is via KnowtatorManager.setSelectedCls().
 void fireSelectedSpanChanged(List<Span> selectedSpans)
          The preferred way to update the currently selected spans is via KnowtatorManager.setSelectedSpans.
 void fireSpanEditted(SimpleInstance annotation)
           
static EventHandler getInstance()
           
 void removeAnnotationCreatedListener(AnnotationCreatedListener annotationCreatedListener)
           
 void removeCurrentAnnotationsChangedListener(CurrentAnnotationsChangedListener currentAnnotationsChangedListener)
           
 void removeFastAnnotateListener(FastAnnotateListener fastAnnotateListener)
           
 void removeFilterChangedListener(FilterChangedListener filterChangedListener)
           
 void removeNotifyTextChangeListner(NotifyTextChangeListener notifyTextChangeListener)
           
 void removeRefreshSpanHighlightsListener(RefreshAnnotationsDisplayListener refreshSpanHighlightsListener)
           
 void removeSelectedAnnotationChangeListener(SelectedAnnotationChangeListener selectedAnnotationChangeListener)
           
 void removeSelectedClsChangeListener(SelectedClsChangeListener selectedClsChangeListener)
           
 void removeSelectedSpanChangeListener(SelectedSpanChangeListener selectedSpanChangeListener)
           
 void removeSpanEditListner(SpanEditListener spanEditListener)
           
 void setKnowtatorManager(KnowtatorManager manager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventHandler

protected EventHandler()
Method Detail

getInstance

public static EventHandler getInstance()

setKnowtatorManager

public void setKnowtatorManager(KnowtatorManager manager)

addRefreshAnnotationsDisplayListener

public void addRefreshAnnotationsDisplayListener(RefreshAnnotationsDisplayListener refreshSpanHighlightsListener)

removeRefreshSpanHighlightsListener

public void removeRefreshSpanHighlightsListener(RefreshAnnotationsDisplayListener refreshSpanHighlightsListener)

fireRefreshAnnotationsDisplay

public void fireRefreshAnnotationsDisplay(boolean scrollToSelection)

addCurrentAnnotationsChangedListener

public void addCurrentAnnotationsChangedListener(CurrentAnnotationsChangedListener currentAnnotationsChangedListener)

removeCurrentAnnotationsChangedListener

public void removeCurrentAnnotationsChangedListener(CurrentAnnotationsChangedListener currentAnnotationsChangedListener)

fireCurrentAnnotationsChanged

public void fireCurrentAnnotationsChanged()

addSelectedSpanChangeListener

public void addSelectedSpanChangeListener(SelectedSpanChangeListener selectedSpanChangeListener)

removeSelectedSpanChangeListener

public void removeSelectedSpanChangeListener(SelectedSpanChangeListener selectedSpanChangeListener)

fireSelectedSpanChanged

public void fireSelectedSpanChanged(List<Span> selectedSpans)
The preferred way to update the currently selected spans is via KnowtatorManager.setSelectedSpans. Please use that method instead.

Parameters:
selectedSpans -
See Also:
KnowtatorManager.setSelectedSpans(List)

addSelectedAnnotationChangeListener

public void addSelectedAnnotationChangeListener(SelectedAnnotationChangeListener selectedAnnotationChangeListener)

removeSelectedAnnotationChangeListener

public void removeSelectedAnnotationChangeListener(SelectedAnnotationChangeListener selectedAnnotationChangeListener)

fireSelectedAnnotationChanged

public void fireSelectedAnnotationChanged(SimpleInstance selectedAnnotation)
The preferred way of updating the currently selected annotation is via KnowtatorManager.setSelectedAnnotation(). Please use that method instead.

Parameters:
selectedAnnotation -
See Also:
KnowtatorManager.setSelectedAnnotationSet(SimpleInstance)

addSelectedClsChangeListener

public void addSelectedClsChangeListener(SelectedClsChangeListener selectedClsChangeListener)

removeSelectedClsChangeListener

public void removeSelectedClsChangeListener(SelectedClsChangeListener selectedClsChangeListener)

fireSelectedClsChanged

public void fireSelectedClsChanged(Cls selectedCls)
The preferred way of updating the currently selected cls is via KnowtatorManager.setSelectedCls(). Please use that method instead.

Parameters:
selectedCls -
See Also:
KnowtatorManager.setSelectedCls(Cls)

addAnnotationCreatedListener

public void addAnnotationCreatedListener(AnnotationCreatedListener annotationCreatedListener)

removeAnnotationCreatedListener

public void removeAnnotationCreatedListener(AnnotationCreatedListener annotationCreatedListener)

fireAnnotationCreated

public void fireAnnotationCreated(SimpleInstance createdAnnotation)
The preferred way of creating an annotation is via KnowtatorManager.createAnnotation. Please use that method instead.

Parameters:
createdAnnotation -
See Also:
KnowtatorManager.createAnnotation(Instance)

addFastAnnotateListener

public void addFastAnnotateListener(FastAnnotateListener fastAnnotateListener)

removeFastAnnotateListener

public void removeFastAnnotateListener(FastAnnotateListener fastAnnotateListener)

fireFastAnnotateStart

public void fireFastAnnotateStart()

fireFastAnnotateQuit

public void fireFastAnnotateQuit()

fireFastAnnotateClsChange

public void fireFastAnnotateClsChange()

fireFastAnnotateAddCls

public void fireFastAnnotateAddCls(Frame frame)

fireFastAnnotateRemoveCls

public void fireFastAnnotateRemoveCls(Frame frame)

addFilterChangedListener

public void addFilterChangedListener(FilterChangedListener filterChangedListener)

removeFilterChangedListener

public void removeFilterChangedListener(FilterChangedListener filterChangedListener)

fireFilterChanged

public void fireFilterChanged(SimpleInstance filter,
                              boolean consensusMode)

addNotifyTextChangeListener

public void addNotifyTextChangeListener(NotifyTextChangeListener notifyTextChangeListener)

removeNotifyTextChangeListner

public void removeNotifyTextChangeListner(NotifyTextChangeListener notifyTextChangeListener)

fireNotifyTextChanged

public void fireNotifyTextChanged(String notifyText)

addSpanEditListener

public void addSpanEditListener(SpanEditListener spanEditListener)

removeSpanEditListner

public void removeSpanEditListner(SpanEditListener spanEditListener)

fireSpanEditted

public void fireSpanEditted(SimpleInstance annotation)

dispose

public void dispose()