|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uchsc.ccp.knowtator.KnowtatorManager
public class KnowtatorManager
Constructor Summary | |
---|---|
KnowtatorManager(KnowtatorProjectUtil kpu)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KnowtatorManager(KnowtatorProjectUtil kpu)
Method Detail |
---|
public KnowledgeBase getKnowledgeBase()
public void setNotifyText(String text)
public List<SimpleInstance> getCurrentAnnotationsForFrame(Frame frame)
public int getCurrentAnnotationCountForFrame(Frame frame)
public int getConsolidatedAnnotationCountForFrame(Frame frame)
public SimpleInstance getNextAnnotation()
selectNextAnnotation()
public SimpleInstance getPreviousAnnotation()
selectPreviousAnnotation()
public List<SimpleInstance> getCurrentFilteredAnnotations()
public List<SimpleInstance> getVisibleFilteredAnnotations()
public List<SimpleInstance> getCurrentPartiallyFilteredAnnotations()
public List<SimpleInstance> getCurrentSelectableFilteredAnnotations()
public void updateCurrentAnnotations()
public void updateVisibleFilteredAnnotations()
public Cls getSelectedCls()
public void setSelectedCls(Cls cls)
cls
- public SimpleInstance getSelectedAnnotation()
public SimpleInstance getLastSelectedAnnotation()
public void setSelectedAnnotation(SimpleInstance annotation)
annotation
- public void selectNextAnnotation()
public void selectPreviousAnnotation()
public List<Span> getSelectedSpans()
public void setSelectedSpans(List<Span> selectedSpans)
selectedSpans
- EventHandler.fireSelectedSpanChanged(List)
public List<SimpleInstance> getColorAssignments()
public List<Cls> getRootClses()
public SimpleInstance getSelectedAnnotator()
public void setSelectedAnnotator(SimpleInstance annotator)
public SimpleInstance getSelectedAnnotationSet()
public void setSelectedAnnotationSet(SimpleInstance annotationSet)
public String getTokenRegex()
public void currentAnnotationsChanged(CurrentAnnotationsChangeEvent cace)
currentAnnotationsChanged
in interface CurrentAnnotationsChangedListener
public void annotationCreated(AnnotationCreatedEvent event)
annotationCreated
in interface AnnotationCreatedListener
public void refreshAnnotationsDisplay(boolean scrollToSelection)
scrollToSelection
- please see javadoc for RefreshAnnotationsDisplayListenerRefreshAnnotationsDisplayListener.refreshAnnotationsDisplay(boolean)
public void deleteSelectedAnnotation()
public void deleteAnnotation(SimpleInstance annotation)
public void duplicateSelectedAnnotation()
public SimpleInstance createAnnotation(Instance selectedClsOrInstance)
selectedClsOrInstance
- - a Cls or Instance frame in Protege that specifies the type
of annotation to create. all other settings for the new
annotation will be derived from the current settings and
selections.
public SimpleInstance createAnnotation(Instance selectedClsOrInstance, boolean selectCreatedAnnotation)
selectedClsOrInstance
- selectCreatedAnnotation
- determines whether the newly created annotation should be
selected. If the new annotation is a slot filler, then you
might not want it to be selected as the annotation of focus
for Knowtator.
public AnnotationUtil getAnnotationUtil()
public BrowserTextUtil getBrowserTextUtil()
public DisplayColors getDisplayColors()
public FilterUtil getFilterUtil()
public MentionUtil getMentionUtil()
public SpanUtil getSpanUtil()
public TextSourceUtil getTextSourceUtil()
public KnowtatorProjectUtil getKnowtatorProjectUtil()
public ColorFrameRenderer getRenderer()
public KnowtatorTextPane getTextPane()
public void setTextPane(KnowtatorTextPane textPane)
public Comparator<SimpleInstance> getAnnotationComparator()
public Comparator<SimpleInstance> getPositionComparator(SimpleInstance annotation)
public void setAnnotationComparator(Comparator<SimpleInstance> annotationComparator)
public Frame getFastAnnotateFrame()
public void setFastAnnotateFrame(Frame fastAnnotateFrame)
public void startFastAnnotate()
public void startFastAnnotate(Frame fastAnnotateFrame)
fastAnnotateFrame
- the class with which to annotate withisFastAnnotateMode()
,
setFastAnnotateFrame(Frame)
public void removeFastAnnotateFrame(Frame frame)
frame
- The frame (or Cls) to be removed.public boolean fastAnnotateToolBarContains(Frame frame)
frame
- The frame to lookup
public void quitFastAnnotate()
public boolean isFastAnnotateMode()
public void setSelectedFilter(SimpleInstance filter) throws ConsensusException
ConsensusException
public SimpleInstance getSelectedFilter()
public List<SimpleInstance> getActiveFilters()
public void setActiveFilters(Collection<SimpleInstance> activeFilters)
public void addActiveFilter(SimpleInstance filter)
public boolean getFadeUnselectedAnnotations()
public Slot getSubtextSlot()
public void restartConsensusMode() throws ConsensusException
ConsensusException
public boolean isConsensusMode()
public int getConsensusModeProgress()
public void textSourceChanged(TextSourceChangeEvent event)
textSourceChanged
in interface TextSourceChangeListener
public void consolidateAnnotation(SimpleInstance deleteAnnotation, SimpleInstance consolidateAnnotation)
public void setTextViewer(TextViewer textViewer)
public boolean isAnnotationVisible(SimpleInstance annotation)
public Span getVisibleSpan()
public int getVerticalDistance(SimpleInstance annotation1, SimpleInstance annotation2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |