Class TreesBlock.NewickTreeString

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getRootType()
      See if the tree is rooted.
      java.lang.String getTreeString()
      Get the Newick string describing the tree.
      boolean isStarred()
      Tests whether this tree has a star before it's name.
      void setRootType​(java.lang.String rootType)
      Make the tree (un)rooted.
      void setStarred​(boolean starred)
      Sets whether this tree has a star before it's name.
      void setTreeString​(java.lang.String treeString)
      Set the Newick string describing the tree.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setRootType

        public void setRootType​(java.lang.String rootType)
        Make the tree (un)rooted.
        Parameters:
        rootType - 'U' for unrooted, 'R' for rooted, null for unsure.
      • setTreeString

        public void setTreeString​(java.lang.String treeString)
        Set the Newick string describing the tree.
      • setStarred

        public void setStarred​(boolean starred)
        Sets whether this tree has a star before it's name.
        Parameters:
        starred - true if it has one.
      • isStarred

        public boolean isStarred()
        Tests whether this tree has a star before it's name.
        Returns:
        starred true if it has one.
      • getRootType

        public java.lang.String getRootType()
        See if the tree is rooted.
        Returns:
        'U' for unrooted, 'R' for rooted, null for unsure.
      • getTreeString

        public java.lang.String getTreeString()
        Get the Newick string describing the tree.
        Returns:
        the tree string.