public class CorefEditor extends AbstractDocumentView implements ActionListener, FeatureMapListener, DocumentListener, AnnotationSetListener
| Modifier and Type | Class and Description |
|---|---|
protected class |
CorefEditor.ChainToolTipAction
When user hovers over the chainnodes
|
protected class |
CorefEditor.CorefTreeCellRenderer
Cell renderer to add the checkbox in the tree
|
protected class |
CorefEditor.CorefTreeMouseListener
Action for mouseClick on the Tree
|
protected class |
CorefEditor.CorefTreeNode |
protected class |
CorefEditor.NewCorefAction
When user hovers over the annotations which have been highlighted by
show button
|
protected class |
CorefEditor.TextPaneMouseListener |
active, document, guiInitialised, handle, ownernamefeaturesCENTRAL, HORIZONTAL, VERTICAL| Constructor and Description |
|---|
CorefEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent ae)
ActionPerformed Activity
|
void |
annotationAdded(AnnotationSetEvent ase)
Called when a new
Annotation has been added |
void |
annotationRemoved(AnnotationSetEvent ase)
Called when an
Annotation has been removed |
void |
annotationSetAdded(DocumentEvent de)
This method is called when any new annotationSet is added
|
void |
annotationSetRemoved(DocumentEvent de)
This method is called when any annotationSet is removed outside the
co-reference editor..
|
void |
cleanup()
This methods cleans up the memory by removing all listener registrations
|
void |
contentEdited(DocumentEvent e)
Called when the content of the document has changed through an edit
operation.
|
void |
featureMapUpdated()
Called when features are changed outside the co-refEditor
|
CorefEditor.CorefTreeNode |
findOutChainNode(String chainNodeString,
String set) |
Annotation |
findOutTheLongestAnnotation(List<Integer> matches,
AnnotationSet set)
Given arrayList containing Ids of the annotations, and an annotationSet, this method
returns the annotations that has longest string among the matches
|
Component |
getGUI()
Returns the actual UI component this view represents.
|
String |
getString(Annotation ann)
Given an annotation, this method returns the string of that annotation
|
int |
getType()
Returns the type of this view.
|
void |
highlightAnnotations()
This methods highlights the annotations
|
protected void |
initGUI()
This method intiates the GUI for co-reference editor
|
void |
mouseClicked(MouseEvent me) |
protected void |
registerHooks()
This method will be called whenever the view becomes active.
|
void |
reinitAllVariables() |
void |
removeChainReference(Annotation annot,
CorefEditor.CorefTreeNode chainHead)
Removes the reference of this annotation from the current chain.
|
protected void |
unregisterHooks()
This method will be called whenever this view becomes inactive.
|
getActions, getDocument, getHandle, getOwner, isActive, setActive, setHandle, setOwner, setSelectedAnnotations, setTargetcheckParameterValues, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toStringgetFeatures, setFeaturesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittargetReinitialisedgetParameterValue, init, setParameterValue, setParameterValuesgetFeatures, setFeaturesgetName, setNameprotected void initGUI()
initGUI in class AbstractDocumentViewpublic void reinitAllVariables()
public void cleanup()
cleanup in interface Resourcecleanup in class AbstractResourcepublic Annotation findOutTheLongestAnnotation(List<Integer> matches, AnnotationSet set)
public void annotationSetRemoved(DocumentEvent de)
annotationSetRemoved in interface DocumentListenerde - public void annotationSetAdded(DocumentEvent de)
annotationSetAdded in interface DocumentListenerde - public void contentEdited(DocumentEvent e)
contentEdited in interface DocumentListenerpublic void annotationAdded(AnnotationSetEvent ase)
AnnotationSetListenerAnnotation has been addedannotationAdded in interface AnnotationSetListenerpublic void annotationRemoved(AnnotationSetEvent ase)
AnnotationSetListenerAnnotation has been removedannotationRemoved in interface AnnotationSetListenerpublic void featureMapUpdated()
featureMapUpdated in interface FeatureMapListenerpublic void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListenerae - public String getString(Annotation ann)
public void removeChainReference(Annotation annot, CorefEditor.CorefTreeNode chainHead)
annot - annotation to removechainHead - co-reference chain to modifypublic void highlightAnnotations()
protected void registerHooks()
AbstractDocumentViewregisterHooks in class AbstractDocumentViewprotected void unregisterHooks()
AbstractDocumentViewAbstractDocumentView.registerHooks().unregisterHooks in class AbstractDocumentViewpublic Component getGUI()
DocumentViewgetGUI in interface DocumentViewComponent value.public int getType()
DocumentViewgetType in interface DocumentViewDocumentView.CENTRAL,
DocumentView.HORIZONTAL,
DocumentView.VERTICALpublic void mouseClicked(MouseEvent me)
public CorefEditor.CorefTreeNode findOutChainNode(String chainNodeString, String set)
Copyright © 2024 GATE. All rights reserved.