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 TypeMethodDescriptionvoid
static TreeCellRenderer
Returns a renderer that can be used for the JTree displaying this model.int
getChildCount
(Object parent) int
getIndexOfChild
(Object parent, Object child) getRoot()
boolean
void
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)
-
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:
getChildCount
in interfaceTreeModel
-
getChild
-
isLeaf
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
createRenderer
Returns a renderer that can be used for the JTree displaying this model.- Returns:
- renderer
-