|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gate.creole.AbstractVisualResource
gate.gui.OntologyEditor
public class OntologyEditor
Nested Class Summary | |
---|---|
protected static class |
OntologyEditor.DetailsGroup
An object that holds one type of details (i.e. the super classes, or the properties) of an ontology item (class or instance). |
protected class |
OntologyEditor.DetailsTableCellRenderer
|
protected class |
OntologyEditor.DetailsTableModel
A model for the list object displaying the item details. |
protected static class |
OntologyEditor.OntologyItemComparator
|
protected static class |
OntologyEditor.OntoTreeCellRenderer
|
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected JTable |
detailsTable
The list view used to display item details |
protected OntologyEditor.OntologyItemComparator |
itemComparator
|
protected JSplitPane |
mainSplit
The main split |
protected Ontology |
ontology
If the taxonomy being edited is an ontology (i.e. has instances as well) then this member stores it as well. |
protected boolean |
ontologyMode
Flag that indicates whether the object beiong edited is an ontology. |
protected DefaultMutableTreeNode |
rootNode
The root node of the tree. |
protected Taxonomy |
taxonomy
The taxonomy that this editor displays |
protected JTree |
tree
The tree view. |
protected DefaultTreeModel |
treeModel
The mode, for the tree. |
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 | |
---|---|
OntologyEditor()
|
Method Summary | |
---|---|
protected void |
addChidrenRec(DefaultMutableTreeNode parent,
List children,
Comparator comparator)
Adds the children nodes to a node using values from a list of classes and instances. |
Resource |
init()
Initialise this resource, and return it. |
protected void |
initGUIComponents()
|
protected void |
initListeners()
|
protected void |
initLocalData()
|
void |
objectCreated(ObjectModificationEvent e)
|
void |
objectDeleted(ObjectModificationEvent e)
|
void |
objectModified(ObjectModificationEvent e)
|
void |
processGateEvent(GateEvent e)
Called when a Gate event has occured |
protected void |
rebuildModel()
Called when the target of this editor has changed |
void |
setTarget(Object target)
Called by the GUI when this viewer/editor has to initialise itself for a specific object. |
Methods inherited from class gate.creole.AbstractVisualResource |
---|
cleanup, getFeatures, 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.VisualResource |
---|
setHandle |
Methods inherited from interface gate.Resource |
---|
cleanup, getParameterValue, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
---|
getFeatures, setFeatures |
Methods inherited from interface gate.util.NameBearer |
---|
getName, setName |
Field Detail |
---|
protected Taxonomy taxonomy
protected Ontology ontology
protected boolean ontologyMode
protected OntologyEditor.OntologyItemComparator itemComparator
protected JTree tree
protected DefaultTreeModel treeModel
protected JTable detailsTable
protected JSplitPane mainSplit
protected DefaultMutableTreeNode rootNode
Constructor Detail |
---|
public OntologyEditor()
Method Detail |
---|
public void setTarget(Object target)
AbstractVisualResource
setTarget
in interface VisualResource
setTarget
in class AbstractVisualResource
target
- 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
protected void initLocalData()
protected void initGUIComponents()
protected void initListeners()
protected void rebuildModel()
protected void addChidrenRec(DefaultMutableTreeNode parent, List children, Comparator comparator)
parent
- the parent node.children
- the lsit of children objects.comparator
- the Comparator used to sort the children.public void processGateEvent(GateEvent e)
GateListener
processGateEvent
in interface GateListener
public void objectCreated(ObjectModificationEvent e)
objectCreated
in interface ObjectModificationListener
public void objectDeleted(ObjectModificationEvent e)
objectDeleted
in interface ObjectModificationListener
public void objectModified(ObjectModificationEvent e)
objectModified
in interface ObjectModificationListener
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |