Package org.phylowidget.render

Examples of org.phylowidget.render.NodeRange


  public void nodeEditName() {
    text.startEditing(curRange(), PhyloTextField.LABEL);
  }

  public void nodeReroot() {
    NodeRange r = curRange();
    r.render.getTree().reroot(curNode());
  }
View Full Code Here


    NodeRange r = curRange();
    r.render.getTree().reroot(curNode());
  }

  public void nodeSwitchChildren() {
    NodeRange r = curRange();
    r.render.getTree().flipChildren(curNode());
    r.render.layoutTrigger();
  }
View Full Code Here

    r.render.getTree().flipChildren(curNode());
    r.render.layoutTrigger();
  }

  public void nodeFlipSubtree() {
    NodeRange r = curRange();
    r.render.getTree().reverseSubtree(curNode());
    getCurTree().modPlus();
    r.render.layoutTrigger();
  }
View Full Code Here

    getCurTree().modPlus();
    r.render.layoutTrigger();
  }

  public void nodeAddSister() {
    NodeRange r = curRange();
    RootedTree tree = r.render.getTree();
    PhyloNode sis = (PhyloNode) tree.createAndAddVertex("");
    tree.addSisterNode(curNode(), sis);
  }
View Full Code Here

    PhyloNode sis = (PhyloNode) tree.createAndAddVertex("");
    tree.addSisterNode(curNode(), sis);
  }

  public void nodeAddChild() {
    NodeRange r = curRange();
    RootedTree tree = r.render.getTree();
    tree.addChildNode(curNode());
  }
View Full Code Here

    RootedTree tree = r.render.getTree();
    tree.addChildNode(curNode());
  }

  public void nodeCut() {
    NodeRange r = curRange();
    clipboard.cut(r.render.getTree(), r.node);
  }
View Full Code Here

    NodeRange r = curRange();
    clipboard.cut(r.render.getTree(), r.node);
  }

  public void nodeCopy() {
    NodeRange r = curRange();
    clipboard.copy(r.render.getTree(), r.node);
  }
View Full Code Here

    NodeRange r = curRange();
    clipboard.copy(r.render.getTree(), r.node);
  }

  public void nodePaste() {
    final NodeRange r = curRange();
    setMessage("Pasting tree...");
    new Thread() {
      public void run() {
        synchronized (r.render.getTree()) {
          clipboard.paste(r.render.getTree(), r.node);
View Full Code Here

  public void nodeClearClipboard() {
    clipboard.clearClipboard();
  }

  public void nodeDelete() {
    NodeRange r = curRange();
    RootedTree g = r.render.getTree();
    synchronized (g) {
      g.deleteNode(curNode());
    }
  }
View Full Code Here

      g.deleteNode(curNode());
    }
  }

  public void nodeDeleteSubtree() {
    NodeRange r = curRange();
    RootedTree g = r.render.getTree();
    synchronized (g) {
      g.deleteSubtree(curNode());
    }
  }
View Full Code Here

TOP

Related Classes of org.phylowidget.render.NodeRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.