|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel gate.creole.AbstractVisualResource com.ontotext.gate.vr.Gaze
public class Gaze
Gaze is a Gazetteer VR capable of viewing and editing gazetteer lists, linear definitions (lists.def files), and mapping definitions (mappings between ontology classes and gazetteer lists). I.e. capable of visualizing and editing both linear and ontology-aware gazetteers.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Fields inherited from class gate.creole.AbstractVisualResource |
---|
features, handle |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Gaze()
|
Method Summary | |
---|---|
Resource |
init()
Initialise this resource, and return it. |
void |
ontologyModified(Ontology ontology,
OResource resource,
int eventType)
|
void |
ontologyReset(Ontology ontology)
This method is called whenever ontology is reset. |
void |
processGateEvent(GateEvent e)
|
void |
processGazetteerEvent(GazetteerEvent e)
Called when a Gazetteer event has occured |
void |
resourceAdded(Ontology ontology,
OResource resource)
This method is invoked whenever a resource (class/property/instance) is added to the ontology. |
void |
resourcePropertyValueChanged(Ontology ontology,
OResource resource,
RDFProperty property,
Object value,
int eventType)
This method should be invoked when a property value is added or removed (specified by the event type). |
void |
resourceRelationChanged(Ontology ontology,
OResource resource1,
OResource resouce2,
int eventType)
This method is invoked whenever a relation between two objects of the same class (e.g. |
void |
resourcesRemoved(Ontology ontology,
String[] resourcesURIs)
This method is invoked whenever a resource (class/property/instance) is removed from the ontology. |
void |
setTarget(Object targeta)
Called by the GUI when this viewer/editor has to initialise itself for a specific object. this is an AbstractVisualResource overriden method. |
static void |
synchronizeTreeExpansion(JTree orig,
JTree mirror)
Synchronizes the expansion of the given trees. |
Methods inherited from class gate.creole.AbstractVisualResource |
---|
cleanup, getFeatures, getInitParameterValues, getParameterValue, setFeatures, setHandle, setParameterValue, setParameterValues |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gate.util.NameBearer |
---|
getName, setName |
Field Detail |
---|
public static final int SIZE_X
public static final int SIZE_Y
public static final int POSITION_X
public static final int POSITION_Y
protected JPopupMenu linearPopup
protected JMenuItem linearPopupEdit
protected JMenuItem linearPopupInsert
protected JMenuItem linearPopupRemove
protected JMenuBar mainMenu
protected JMenu fileMenu
protected JMenu viewMenu
protected JSplitPane baseSplit
protected JSplitPane mappingSplit
protected JSplitPane linearSplit
protected JPanel linearPanel
protected JPanel listPanel
protected JPanel mappingPanel
protected JPanel ontologyPanel
protected JLabel linearLabel
protected GridBagLayout gridBagLayout1
protected JScrollPane linearScroll
protected JToolBar linearBar
protected JButton btnLinearLoad
protected JList linearList
protected JButton btnLinearSave
protected JButton btnLinearSaveAs
protected JLabel listLabel
protected GridBagLayout gridBagLayout2
protected JToolBar listBar
protected JButton btnListLoad
protected JScrollPane listScroll
protected JButton btnListSave
protected JButton btnListSaveAs
protected GridBagLayout gridBagLayout3
protected JLabel mappingLabel
protected JToolBar mappingBar
protected JButton btnMappingLoad
protected JScrollPane mappingScroll
protected JList mappingList
protected JButton btnMappingSave
protected JButton btnMappingSaveAs
protected JLabel ontologyLabel
protected JToolBar ontologyBar
protected JButton btnOntologyLoad
protected JScrollPane ontologyScroll
protected GridBagLayout gridBagLayout4
protected JMenu menuHelp
protected JMenuItem menuAbout
protected GridBagLayout thisLayout
protected JMenu menuLinear
protected JMenuItem menuLinearLoad
protected JMenuItem menuLinearSave
protected JMenuItem menuLinearSaveAs
protected JMenu menuList
protected JMenuItem menuListLoad
protected JMenuItem menuListSave
protected JMenuItem menuListSaveAs
protected JMenu menuMapping
protected JMenuItem menuMappingLoad
protected JMenuItem menuMappingSave
protected JMenuItem menuMappingSaveAs
protected JMenu menuOntology
protected JMenuItem menuOntologyLoad
protected JMenuItem menuRefresh
protected JTree oTree
protected JTextArea listArea
protected JButton btnMappingNew
protected JButton btnLinearNew
protected JButton btnListNew
protected JMenuItem menuLinearNew
protected JMenuItem menuListNew
protected JMenuItem menuMappingNew
protected JButton btnListSaveAll
protected JMenuItem menuListSaveAll
Constructor Detail |
---|
public Gaze()
Method Detail |
---|
public void setTarget(Object targeta)
AbstractVisualResource
overriden method.
setTarget
in interface VisualResource
setTarget
in class AbstractVisualResource
targeta
- the object (be it a Resource
,
DataStore
or whatever) this viewer has to displaypublic Resource init() throws ResourceInstantiationException
AbstractVisualResource
init
in interface Resource
init
in class AbstractVisualResource
ResourceInstantiationException
public void processGazetteerEvent(GazetteerEvent e)
GazetteerListener
processGazetteerEvent
in interface GazetteerListener
e
- Gazetteer Eventpublic void processGateEvent(GateEvent e)
public void resourceAdded(Ontology ontology, OResource resource)
OntologyModificationListener
resourceAdded
in interface OntologyModificationListener
ontology
- the source of the eventresource
- an instance of OResource, which was created as a
result of addition of a resource.public void resourcesRemoved(Ontology ontology, String[] resourcesURIs)
OntologyModificationListener
resourcesRemoved
in interface OntologyModificationListener
ontology
- the source of the eventresourcesURIs
- an array of URIs of resources which were deleted
(including the resource which was asked to be deleted).public void ontologyReset(Ontology ontology)
OntologyModificationListener
ontologyReset
in interface OntologyModificationListener
public void resourceRelationChanged(Ontology ontology, OResource resource1, OResource resouce2, int eventType)
OntologyModificationListener
resourceRelationChanged
in interface OntologyModificationListener
ontology
- the source of the eventresource1
- the affected OResourceresouce2
- the affected OResourceeventType
- the type of an event (@see OConstants) for more
detailspublic void resourcePropertyValueChanged(Ontology ontology, OResource resource, RDFProperty property, Object value, int eventType)
OntologyModificationListener
resourcePropertyValueChanged
in interface OntologyModificationListener
ontology
- the source of the eventresource
- the affected resource whose property value is added or removedproperty
- the property whose value has been added or removedvalue
- the actual value that is added or removed. If the value is null - it indicates all the values related to the property are deleted.eventType
- type of the event (@see OConstants) for more detailspublic void ontologyModified(Ontology ontology, OResource resource, int eventType)
public static void synchronizeTreeExpansion(JTree orig, JTree mirror)
orig
- the original treemirror
- the tree to mimic the expansion of the original
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |