Class FeatureTreeModel
java.lang.Object
uk.ac.starlink.vo.FeatureTreeModel
- All Implemented Interfaces:
TreeModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic TreeCellRendererReturns a renderer that can be used for the JTree displaying this model.intgetChildCount(Object parent) intgetIndexOfChild(Object parent, Object child) getRoot()booleanvoidvoidsetAdqlVersion(AdqlVersion adqlVersion) Sets the ADQL version for which this tree should display information.voidsetCapability(TapCapability tcap) Set the content of this tree according to a supplied TapCapability.voidvalueForPathChanged(TreePath path, Object newValue)
-
Constructor Details
-
FeatureTreeModel
Constructor. The scroll pane containing the tree which this model will be displayed has to be supplied, since some rendering gymnastics are required when the scroll pane viewport is resized.- Parameters:
treeScroller- scroll pane containing tree
-
-
Method Details
-
setCapability
Set the content of this tree according to a supplied TapCapability.- Parameters:
tcap- capability
-
setAdqlVersion
Sets the ADQL version for which this tree should display information.- Parameters:
adqlVersion- version
-
getRoot
-
getChildCount
- Specified by:
getChildCountin interfaceTreeModel
-
getChild
-
isLeaf
-
getIndexOfChild
- Specified by:
getIndexOfChildin interfaceTreeModel
-
addTreeModelListener
- Specified by:
addTreeModelListenerin interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListenerin interfaceTreeModel
-
valueForPathChanged
- Specified by:
valueForPathChangedin interfaceTreeModel
-
createRenderer
Returns a renderer that can be used for the JTree displaying this model.- Returns:
- renderer
-