public class FeatureTreeModel extends Object implements TreeModel
Constructor and Description |
---|
FeatureTreeModel(JScrollPane treeScroller)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(TreeModelListener l) |
static TreeCellRenderer |
createRenderer()
Returns a renderer that can be used for the JTree displaying
this model.
|
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
int |
getIndexOfChild(Object parent,
Object child) |
Object |
getRoot() |
boolean |
isLeaf(Object node) |
void |
removeTreeModelListener(TreeModelListener l) |
void |
setAdqlVersion(AdqlVersion adqlVersion)
Sets the ADQL version for which this tree should display information.
|
void |
setCapability(TapCapability tcap)
Set the content of this tree according to a supplied TapCapability.
|
void |
valueForPathChanged(TreePath path,
Object newValue) |
public FeatureTreeModel(JScrollPane treeScroller)
treeScroller
- scroll pane containing treepublic void setCapability(TapCapability tcap)
tcap
- capabilitypublic void setAdqlVersion(AdqlVersion adqlVersion)
adqlVersion
- versionpublic int getChildCount(Object parent)
getChildCount
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener
in interface TreeModel
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
public static TreeCellRenderer createRenderer()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.