Class StanfordTree

    • Field Detail

      • m_Tree

        protected edu.stanford.nlp.trees.Tree m_Tree
        the underlying Stanford tree.
    • Constructor Detail

      • StanfordTree

        public StanfordTree()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class adams.gui.core.BaseTree
      • buildTree

        protected StanfordNode buildTree​(StanfordNode parentNode,
                                         edu.stanford.nlp.trees.Tree parentTree)
        Builds the tree.
        Parameters:
        parentNode - the current parent, null for root
        parentTree - the tree to attach
        Returns:
        the generated node
      • buildTree

        protected void buildTree()
        Builds the tree from the current JSON object.
      • setTree

        public void setTree​(edu.stanford.nlp.trees.Tree value)
        Sets the Stanford parse tree object to display.
        Parameters:
        value - the tree to display
      • getTree

        public edu.stanford.nlp.trees.Tree getTree()
        Returns the Stanford parse tree on display.
        Returns:
        the tree, null if none displayed