Class OntologyTree
java.lang.Object
org.monarchinitiative.hpotextmining.gui.controller.OntologyTree
This class acts as the controller of the Pane on the left side of the main HPO dialog. The top part of the pane
presents HPO hierarchy as a tree using
TreeView. Details of any selected HPO term are presented at
the bottom of the Pane.
User can either browse the ontology tree by expanding individual tree elements or jump to any term using a search text field with autocompletion capabilities.
The selected term (either present of not) is added to the table using Add button at the bottom of the Pane.
- Since:
- 0.1
- Version:
- 0.1.0
- Author:
- Daniel Danis, Aaron Zhang
-
Constructor Summary
ConstructorsConstructorDescriptionOntologyTree(org.monarchinitiative.phenol.ontology.data.Ontology ontology, Consumer<Main.PhenotypeTerm> addHook) -
Method Summary
Modifier and TypeMethodDescriptionvoidPopulate theontologyTreeViewwith the rootTerms of providedOntology.javafx.beans.property.StringPropertyvoid
-
Constructor Details
-
OntologyTree
public OntologyTree(org.monarchinitiative.phenol.ontology.data.Ontology ontology, Consumer<Main.PhenotypeTerm> addHook)- Parameters:
ontology-Ontologyto be displayed here as a treeaddHook-ConsumerofMain.PhenotypeTerm, an approved term will be submitted here
-
-
Method Details
-
searchTextFieldAction
public void searchTextFieldAction() -
initialize
public void initialize()Populate theontologyTreeViewwith the rootTerms of providedOntology. Initialize other JavaFX elements. -
observableSearchText
public javafx.beans.property.StringProperty observableSearchText()
-