Constructor and Description |
---|
SourceGroupTreeModel(ViewerState state) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes.
|
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
int |
getIndexOfChild(Object parent,
Object child) |
TreePath |
getPathTo(bdv.ui.sourcegrouptree.SourceGroupTreeModel.GroupModel group) |
Object |
getRoot() |
boolean |
isLeaf(Object node) |
void |
removeTreeModelListener(TreeModelListener l)
Removes a listener previously added with addTreeModelListener().
|
void |
valueForPathChanged(TreePath path,
Object newValue) |
public SourceGroupTreeModel(ViewerState state)
public int getChildCount(Object parent)
getChildCount
in interface TreeModel
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener
in interface TreeModel
l
- the listener to addremoveTreeModelListener(javax.swing.event.TreeModelListener)
public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener
in interface TreeModel
l
- the listener to removeaddTreeModelListener(javax.swing.event.TreeModelListener)
public TreePath getPathTo(bdv.ui.sourcegrouptree.SourceGroupTreeModel.GroupModel group)
Copyright © 2015–2021 Fiji. All rights reserved.