org.dllearner.gui
Class EBNodeTreeModel
java.lang.Object
org.dllearner.gui.EBNodeTreeModel
- All Implemented Interfaces:
- TreeModel
public class EBNodeTreeModel
- extends Object
- implements TreeModel
A tree model used for displaying example based nodes. A search tree can
become very large, so lazy loading should be used, i.e. never load the full
search tree but only the nodes selected by the user. Note that the search
tree changes over time.
- Author:
- Jens Lehmann
EBNodeTreeModel
public EBNodeTreeModel(ExampleBasedNode rootNode)
addTreeModelListener
public void addTreeModelListener(TreeModelListener l)
- Specified by:
addTreeModelListener in interface TreeModel
getChild
public Object getChild(Object parent,
int index)
- Specified by:
getChild in interface TreeModel
getChildCount
public int getChildCount(Object parent)
- Specified by:
getChildCount in interface TreeModel
getIndexOfChild
public int getIndexOfChild(Object parent,
Object child)
- Specified by:
getIndexOfChild in interface TreeModel
getRoot
public Object getRoot()
- Specified by:
getRoot in interface TreeModel
isLeaf
public boolean isLeaf(Object node)
- Specified by:
isLeaf in interface TreeModel
removeTreeModelListener
public void removeTreeModelListener(TreeModelListener l)
- Specified by:
removeTreeModelListener in interface TreeModel
valueForPathChanged
public void valueForPathChanged(TreePath path,
Object newValue)
- Specified by:
valueForPathChanged in interface TreeModel
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2008 Jens Lehmann