java.lang.Object
org.monarchinitiative.hpotextmining.gui.controller.OntologyTree

public class OntologyTree extends Object
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 Details

    • OntologyTree

      public OntologyTree(org.monarchinitiative.phenol.ontology.data.Ontology ontology, Consumer<Main.PhenotypeTerm> addHook)
      Parameters:
      ontology - Ontology to be displayed here as a tree
      addHook - Consumer of Main.PhenotypeTerm, an approved term will be submitted here
  • Method Details

    • searchTextFieldAction

      public void searchTextFieldAction()
    • initialize

      public void initialize()
      Populate the ontologyTreeView with the root Terms of provided Ontology. Initialize other JavaFX elements.

    • observableSearchText

      public javafx.beans.property.StringProperty observableSearchText()