public class OntologyViewer
extends gate.gui.docview.AbstractDocumentView
implements gate.event.CreoleListener, gate.event.AnnotationSetListener, gate.event.AnnotationListener, gate.creole.ontology.OntologyModificationListener
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationAction |
annotationAction
This object provides a functionality to add/remove/change the annotations
|
protected HashMap<Integer,String> |
asID2ASName
Each Annotation Set is given a unique ID, which is used later in the
annotationsID2ASID map.
|
protected JTextArea |
documentTextArea
This is where the actual document text is being displayed.
|
protected gate.gui.docview.TextualDocumentView |
documentTextualDocumentView
TextualDocument View instance
|
| Constructor and Description |
|---|
OntologyViewer() |
| Modifier and Type | Method and Description |
|---|---|
void |
annotationAdded(gate.event.AnnotationSetEvent ase)
This method is invoked whenever a new annotation is added
|
void |
annotationRemoved(gate.event.AnnotationSetEvent ase)
This method is called by respective selectedAnnotationSetName from where an
annotation is removed
|
void |
annotationUpdated(gate.event.AnnotationEvent ae) |
void |
cleanup()
Releases all resources and listeners
|
void |
datastoreClosed(gate.event.CreoleEvent creoleEvent) |
void |
datastoreCreated(gate.event.CreoleEvent creoleEvent) |
void |
datastoreOpened(gate.event.CreoleEvent creoleEvent) |
String |
getAnnotationSet(gate.Annotation ann)
Given an annotation, this method tells which selectedAnnotationSetName it
belongs to.
|
Component |
getGUI()
gets the main tabbed pane that will be displayed as the OCAT component
|
OntologyViewerOptions |
getOntologyViewerOptions()
A method that returns the instance of ontology viewer options.
|
int |
getType() |
void |
initGUI()
Initialises the GUI
|
protected void |
initLocalData()
ReIntializes all Maps used for local uses
|
void |
ontologyModified(gate.creole.ontology.Ontology ontology,
gate.creole.ontology.OResource resource,
int eventType) |
void |
ontologyReset(gate.creole.ontology.Ontology ontology) |
void |
registerHooks() |
void |
resourceAdded(gate.creole.ontology.Ontology ontology,
gate.creole.ontology.OResource resource) |
void |
resourceLoaded(gate.event.CreoleEvent creoleEvent)
Gets executed whenever new resource is loaded in the GATE system
|
void |
resourcePropertyValueChanged(gate.creole.ontology.Ontology ontology,
gate.creole.ontology.OResource resource,
gate.creole.ontology.RDFProperty property,
Object value,
int eventType) |
void |
resourceRelationChanged(gate.creole.ontology.Ontology ontology,
gate.creole.ontology.OResource resource1,
gate.creole.ontology.OResource resouce2,
int eventType) |
void |
resourceRenamed(gate.Resource resource,
String string,
String string2)
Gets executed whenever resource name is changed
|
void |
resourcesRemoved(gate.creole.ontology.Ontology ontology,
String[] deletedResources) |
void |
resourceUnloaded(gate.event.CreoleEvent creoleEvent)
Gets executed whenever existing resource is unloaded in the GATE system
|
void |
unregisterHooks() |
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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected gate.gui.docview.TextualDocumentView documentTextualDocumentView
protected JTextArea documentTextArea
protected AnnotationAction annotationAction
public String getAnnotationSet(gate.Annotation ann)
ann - public void initGUI()
initGUI in class gate.gui.docview.AbstractDocumentViewprotected void initLocalData()
public void annotationRemoved(gate.event.AnnotationSetEvent ase)
annotationRemoved in interface gate.event.AnnotationSetListenerpublic void annotationUpdated(gate.event.AnnotationEvent ae)
annotationUpdated in interface gate.event.AnnotationListenerpublic void annotationAdded(gate.event.AnnotationSetEvent ase)
annotationAdded in interface gate.event.AnnotationSetListenerpublic void registerHooks()
registerHooks in class gate.gui.docview.AbstractDocumentViewpublic void unregisterHooks()
unregisterHooks in class gate.gui.docview.AbstractDocumentViewpublic int getType()
getType in interface gate.gui.docview.DocumentViewpublic Component getGUI()
getGUI in interface gate.gui.docview.DocumentViewpublic void cleanup()
cleanup in interface gate.Resourcecleanup in class gate.creole.AbstractResourcepublic void resourceLoaded(gate.event.CreoleEvent creoleEvent)
resourceLoaded in interface gate.event.CreoleListenercreoleEvent - public void resourceUnloaded(gate.event.CreoleEvent creoleEvent)
resourceUnloaded in interface gate.event.CreoleListenercreoleEvent - public void datastoreOpened(gate.event.CreoleEvent creoleEvent)
datastoreOpened in interface gate.event.CreoleListenerpublic void datastoreCreated(gate.event.CreoleEvent creoleEvent)
datastoreCreated in interface gate.event.CreoleListenerpublic void datastoreClosed(gate.event.CreoleEvent creoleEvent)
datastoreClosed in interface gate.event.CreoleListenerpublic void resourceRenamed(gate.Resource resource,
String string,
String string2)
resourceRenamed in interface gate.event.CreoleListenerresource - string - string2 - public void resourcesRemoved(gate.creole.ontology.Ontology ontology,
String[] deletedResources)
resourcesRemoved in interface gate.creole.ontology.OntologyModificationListenerpublic void resourceRelationChanged(gate.creole.ontology.Ontology ontology,
gate.creole.ontology.OResource resource1,
gate.creole.ontology.OResource resouce2,
int eventType)
resourceRelationChanged in interface gate.creole.ontology.OntologyModificationListenerpublic void resourcePropertyValueChanged(gate.creole.ontology.Ontology ontology,
gate.creole.ontology.OResource resource,
gate.creole.ontology.RDFProperty property,
Object value,
int eventType)
resourcePropertyValueChanged in interface gate.creole.ontology.OntologyModificationListenerpublic void ontologyModified(gate.creole.ontology.Ontology ontology,
gate.creole.ontology.OResource resource,
int eventType)
public void ontologyReset(gate.creole.ontology.Ontology ontology)
ontologyReset in interface gate.creole.ontology.OntologyModificationListenerpublic void resourceAdded(gate.creole.ontology.Ontology ontology,
gate.creole.ontology.OResource resource)
resourceAdded in interface gate.creole.ontology.OntologyModificationListenerpublic OntologyViewerOptions getOntologyViewerOptions()