|
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.JTree
com.ontotext.gate.vr.EditableTreeView
public class EditableTreeView
Extends JTree
in order to provide
means for editing the hierarchy of an ontology
borislav popov
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTree |
---|
JTree.AccessibleJTree, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
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 ClassNode |
selectedNode
The currently selected node |
protected TreePath |
selectedTreePath
Stores the selected node info |
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 | |
---|---|
EditableTreeView(OntoTreeModel model)
|
Method Summary | |
---|---|
void |
dragDropEnd(DragSourceDropEvent e)
|
void |
dragEnter(DragSourceDragEvent dsde)
|
void |
dragEnter(DropTargetDragEvent e)
|
void |
dragExit(DragSourceEvent dsde)
|
void |
dragExit(DropTargetEvent e)
|
void |
dragGestureRecognized(DragGestureEvent event)
|
void |
dragOver(DragSourceDragEvent e)
|
void |
dragOver(DropTargetDragEvent e)
|
void |
drop(DropTargetDropEvent e)
|
void |
dropActionChanged(DragSourceDragEvent e)
|
void |
dropActionChanged(DropTargetDragEvent e)
|
OEMainPanel |
getmainPanel()
Gets the main panel of this tree view |
ClassNode |
getSelectedNode()
Returns the selected node |
void |
setMainPanel(OEMainPanel panel)
Sets the main panel of this tree view. |
void |
setModel(OntoTreeModel model)
|
static void |
synchronizeTreeExpansion(JTree orig,
JTree mirror)
Synchronizes the expansion of the given trees. |
void |
valueChanged(TreeSelectionEvent evt)
sets selected node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected TreePath selectedTreePath
protected ClassNode selectedNode
Constructor Detail |
---|
public EditableTreeView(OntoTreeModel model)
Method Detail |
---|
public static void synchronizeTreeExpansion(JTree orig, JTree mirror)
orig
- the original treemirror
- the tree to mimic the expansion of the originalpublic void setMainPanel(OEMainPanel panel)
panel
- the main panelpublic OEMainPanel getmainPanel()
public void setModel(OntoTreeModel model)
public void dragGestureRecognized(DragGestureEvent event)
dragGestureRecognized
in interface DragGestureListener
public void drop(DropTargetDropEvent e)
drop
in interface DropTargetListener
public void dragExit(DragSourceEvent dsde)
dragExit
in interface DragSourceListener
public void dragExit(DropTargetEvent e)
dragExit
in interface DropTargetListener
public void dragEnter(DragSourceDragEvent dsde)
dragEnter
in interface DragSourceListener
public void dragEnter(DropTargetDragEvent e)
dragEnter
in interface DropTargetListener
public void dropActionChanged(DragSourceDragEvent e)
dropActionChanged
in interface DragSourceListener
public void dropActionChanged(DropTargetDragEvent e)
dropActionChanged
in interface DropTargetListener
public void dragOver(DragSourceDragEvent e)
dragOver
in interface DragSourceListener
public void dragOver(DropTargetDragEvent e)
dragOver
in interface DropTargetListener
public void dragDropEnd(DragSourceDropEvent e)
dragDropEnd
in interface DragSourceListener
public void valueChanged(TreeSelectionEvent evt)
valueChanged
in interface TreeSelectionListener
public ClassNode getSelectedNode()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |