Package pal.tree

Interface TreeManipulator.BranchAccess

  • Enclosing class:
    TreeManipulator

    public static interface TreeManipulator.BranchAccess
    The branch access objects allow specific operations on a particular branch (refered to as connections internally to confuse and bewilder)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      TreeManipulator attachSubTree​(Node subTree, int constructionMode)
      Create a new TreeManipulator object that has sub grafted on (half way across this branch)
      java.lang.String[][] getLabelSplit()
      Obtain the split of the labels around this branch.
      void setAnnotation​(java.lang.Object annotation)
      Set the annotation for this branch (will be used when instructing a TreeInterface
    • Method Detail

      • attachSubTree

        TreeManipulator attachSubTree​(Node subTree,
                                      int constructionMode)
        Create a new TreeManipulator object that has sub grafted on (half way across this branch)
        Parameters:
        subTree - The sub tree, as normal Node object.
        Returns:
        A new TreeManipulator
      • getLabelSplit

        java.lang.String[][] getLabelSplit()
        Obtain the split of the labels around this branch.
        Returns:
        A two dimensional array of string arrays (the first element is the label names of one side of the split, the second element is the remainder)
      • setAnnotation

        void setAnnotation​(java.lang.Object annotation)
        Set the annotation for this branch (will be used when instructing a TreeInterface
        Parameters:
        annotation - the annotation object (is dependent on the TreeInterface instructed)