edu.uchsc.ccp.knowtator.event
Class EventHandler
java.lang.Object
edu.uchsc.ccp.knowtator.event.EventHandler
public class EventHandler
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventHandler
protected EventHandler()
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()