Package uk.ac.starlink.vo
Class FeatureTreeModel
java.lang.Object
uk.ac.starlink.vo.FeatureTreeModel
- All Implemented Interfaces:
TreeModel
Model for tree which displays ADQL language features.
This includes standard and user-defined functions,
as well as other mandatory and declared language features.
- Since:
- 19 Feb 2024
- Author:
- Mark Taylor
- See Also:
-
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
-