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, owner
name
features
CENTRAL, 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, setTarget
checkParameterValues, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toString
getFeatures, setFeatures
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
targetReinitialised
getParameterValue, init, setParameterValue, setParameterValues
getFeatures, setFeatures
getName, setName
protected void initGUI()
initGUI
in class AbstractDocumentView
public void reinitAllVariables()
public void cleanup()
cleanup
in interface Resource
cleanup
in class AbstractResource
public Annotation findOutTheLongestAnnotation(List<Integer> matches, AnnotationSet set)
public void annotationSetRemoved(DocumentEvent de)
annotationSetRemoved
in interface DocumentListener
de
- public void annotationSetAdded(DocumentEvent de)
annotationSetAdded
in interface DocumentListener
de
- public void contentEdited(DocumentEvent e)
contentEdited
in interface DocumentListener
public void annotationAdded(AnnotationSetEvent ase)
AnnotationSetListener
Annotation
has been addedannotationAdded
in interface AnnotationSetListener
public void annotationRemoved(AnnotationSetEvent ase)
AnnotationSetListener
Annotation
has been removedannotationRemoved
in interface AnnotationSetListener
public void featureMapUpdated()
featureMapUpdated
in interface FeatureMapListener
public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
ae
- 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()
AbstractDocumentView
registerHooks
in class AbstractDocumentView
protected void unregisterHooks()
AbstractDocumentView
AbstractDocumentView.registerHooks()
.unregisterHooks
in class AbstractDocumentView
public Component getGUI()
DocumentView
getGUI
in interface DocumentView
Component
value.public int getType()
DocumentView
getType
in interface DocumentView
DocumentView.CENTRAL
,
DocumentView.HORIZONTAL
,
DocumentView.VERTICAL
public void mouseClicked(MouseEvent me)
public CorefEditor.CorefTreeNode findOutChainNode(String chainNodeString, String set)
Copyright © 2024 GATE. All rights reserved.