|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.gui.docview.AbstractDocumentView
gate.gui.docview.CorefEditor
Nested Class Summary | |
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
|
Fields inherited from class gate.gui.docview.AbstractDocumentView |
active, document, guiInitialised, handle, owner |
Fields inherited from class gate.creole.AbstractResource |
name |
Fields inherited from class gate.util.AbstractFeatureBearer |
features |
Fields inherited from interface gate.gui.docview.DocumentView |
CENTRAL, HORIZONTAL, VERTICAL |
Constructor Summary | |
CorefEditor()
|
Method Summary | |
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.. |
private void |
annotSetSelectionChanged()
When annotationSet selection changes |
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. |
private CorefEditor.CorefTreeNode |
createChain(AnnotationSet set,
boolean isDefaultSet)
Creates the internal data structure |
void |
featureMapUpdated()
Called when features are changed outside the co-refEditor |
CorefEditor.CorefTreeNode |
findOutChainNode(String chainNodeString)
|
private CorefEditor.CorefTreeNode |
findOutTheChainHead(Annotation ann)
Given an annotation, this will find out the chainHead |
Annotation |
findOutTheLongestAnnotation(ArrayList 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 |
private AnnotationSet |
getAnnotationSet(String annotSet)
Returns annotation Set |
private Color |
getColor(String annotationType)
This method uses the java.util.prefs.Preferences and get the color for particular annotationType.. |
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 |
private void |
initData()
This will initialise the data |
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)
This method removes the reference of this annotatation from the current chain |
private void |
showTypeWiseAnnotations()
When user preses the show Toggle button, this will show up annotations of selected Type from selected AnnotationSet |
protected void |
unregisterHooks()
This method will be called whenever this view becomes inactive. |
Methods inherited from class gate.gui.docview.AbstractDocumentView |
getActions, getDocument, isActive, setActive, setHandle, setOwner, setTarget |
Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
Methods inherited from class gate.util.AbstractFeatureBearer |
getFeatures, setFeatures |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gate.Resource |
getParameterValue, init, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
Methods inherited from interface gate.util.NameBearer |
getName, setName |
Field Detail |
private static final String DEFAULT_ANNOTSET_NAME
private JPanel mainPanel
private JPanel topPanel
private JPanel subPanel
private JToggleButton showAnnotations
private JComboBox annotSets
private JComboBox annotTypes
private DefaultComboBoxModel annotSetsModel
private DefaultComboBoxModel annotTypesModel
private JTree corefTree
private CorefEditor.CorefTreeNode rootNode
private HashMap corefChains
private HashMap corefAnnotationSetNodesMap
private HashMap selectionChainsMap
private HashMap currentSelections
private HashMap colorChainsMap
private HashMap currentColors
private ColorGenerator colorGenerator
private TextualDocumentView textView
private JEditorPane textPane
private HashMap highlightedTags
private ArrayList typeSpecificHighlightedTags
private CorefEditor.TextPaneMouseListener textPaneMouseListener
private ArrayList highlightedChainAnnots
private int[] highlightedChainAnnotsOffsets
private ArrayList highlightedTypeAnnots
private int[] highlightedTypeAnnotsOffsets
private CorefEditor.ChainToolTipAction chainToolTipAction
private Timer chainToolTipTimer
private CorefEditor.NewCorefAction newCorefAction
private Timer newCorefActionTimer
private Annotation annotToConsiderForChain
private JWindow popupWindow
private boolean explicitCall
private Highlighter highlighter
Constructor Detail |
public CorefEditor()
Method Detail |
protected void initGUI()
initGUI
in class AbstractDocumentView
public void reinitAllVariables()
public void cleanup()
cleanup
in interface Resource
cleanup
in class AbstractResource
public Annotation findOutTheLongestAnnotation(ArrayList 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 added
annotationAdded
in interface AnnotationSetListener
public void annotationRemoved(AnnotationSetEvent ase)
AnnotationSetListener
Annotation
has been removed
annotationRemoved
in interface AnnotationSetListener
public void featureMapUpdated()
featureMapUpdated
in interface FeatureMapListener
public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
ae
- private void showTypeWiseAnnotations()
private AnnotationSet getAnnotationSet(String annotSet)
annotSet
-
private void annotSetSelectionChanged()
private void initData()
private CorefEditor.CorefTreeNode createChain(AnnotationSet set, boolean isDefaultSet)
set
- public String getString(Annotation ann)
ann
-
public void removeChainReference(Annotation annot, CorefEditor.CorefTreeNode chainHead)
private CorefEditor.CorefTreeNode findOutTheChainHead(Annotation ann)
ann
-
public 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)
private Color getColor(String annotationType)
annotationType
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |