Package org.phylowidget.render

Examples of org.phylowidget.render.TreeRenderer


  /*
   * File actions.
   */

  public void fileOutputSmall() {
    TreeRenderer tr = PhyloWidget.trees.getRenderer();
    RenderOutput.save(p, getCurTree(), tr, 640, 480);
  }
View Full Code Here


    TreeRenderer tr = PhyloWidget.trees.getRenderer();
    RenderOutput.save(p, getCurTree(), tr, 640, 480);
  }

  public void fileOutputBig() {
    TreeRenderer tr = PhyloWidget.trees.getRenderer();
    RenderOutput.save(p, getCurTree(), tr, 1600, 1200);
  }
View Full Code Here

    TreeRenderer tr = PhyloWidget.trees.getRenderer();
    RenderOutput.save(p, getCurTree(), tr, 1600, 1200);
  }

  public void fileOutputPDF() {
    final TreeRenderer tr = PhyloWidget.trees.getRenderer();
    setMessage("Outputting PDF...");
    new Thread() {
      public void run() {
        RenderOutput.savePDF(p, getCurTree(), tr);
        setMessage("");
View Full Code Here

  void updateValue(String s)
  {
    synchronized (this)
    {
      TreeRenderer r = curRange.render;
      switch (editMode)
      {
        case (LABEL):
          r.getTree().setLabel(curRange.node, s);
          break;
        case (BRANCH_LENGTH):
          try
          {
            double value = Double.parseDouble(s);
            r.getTree().setBranchLength(curRange.node, value);
          } catch (Exception e)
          {
            e.printStackTrace();
            r.layoutTrigger();
            return;
          }
      }
      r.layoutTrigger();
      PhyloWidget.ui.updateNodeInfo(r.getTree(), curRange.node);
    }
  }
View Full Code Here

    {
      /*
       * If we haven't set a "focused" NodeRange yet, set it to the root
       * node.
       */
      TreeRenderer render = PhyloWidget.trees.getRenderer();
      RootedTree t = render.getTree();
      PhyloNode n = (PhyloNode) t.getRoot();
      curNodeRange = rangeForNode(render, n);
    }
    return curNodeRange;
  }
View Full Code Here

  {
    camera.update();

    for (int i = 0; i < renderers.size(); i++)
    {
      TreeRenderer r = (TreeRenderer) renderers.get(i);

      // float oldThresh = PhyloWidget.ui.renderThreshold;
      // PhyloWidget.ui.renderThreshold = 50;
      // r.render(p.g, p.width*.75f, p.height*.75f, p.width*.25f,
      // p.height*.25f, false);
      // PhyloWidget.ui.renderThreshold = oldThresh;
      //     
      r.render(p.g, cameraRect.x, cameraRect.y, cameraRect.width,
          cameraRect.height, true);

    }

//    if (fforwardMe)
//    {
//      fforward(true, true);
//      fforwardMe = false;
//    }

    if (mutateMe)
    {
      mutator.randomlyMutateTree();
      mutateMe = false;
    }

    if (runMe != null)
    {
      Runnable r = runMe;
      runMe = null;
      r.run();
    }
  }
View Full Code Here

  public void nodesInRange(ArrayList list, Rectangle2D.Float rect)
  {
    for (int i = 0; i < renderers.size(); i++)
    {
      TreeRenderer r = (TreeRenderer) renderers.get(i);
      r.nodesInRange(list, rect);
    }
  }
View Full Code Here

  /*
   * File actions.
   */

  public void fileOutputSmall() {
    TreeRenderer tr = PhyloWidget.trees.getRenderer();
    RenderOutput.save(p, getCurTree(), tr, 640, 480);
  }
View Full Code Here

    TreeRenderer tr = PhyloWidget.trees.getRenderer();
    RenderOutput.save(p, getCurTree(), tr, 640, 480);
  }

  public void fileOutputBig() {
    TreeRenderer tr = PhyloWidget.trees.getRenderer();
    RenderOutput.save(p, getCurTree(), tr, 1600, 1200);
  }
View Full Code Here

    TreeRenderer tr = PhyloWidget.trees.getRenderer();
    RenderOutput.save(p, getCurTree(), tr, 1600, 1200);
  }

  public void fileOutputPDF() {
    final TreeRenderer tr = PhyloWidget.trees.getRenderer();
    setMessage("Outputting PDF...");
    new Thread() {
      public void run() {
        RenderOutput.savePDF(p, getCurTree(), tr);
        setMessage("");
View Full Code Here

TOP

Related Classes of org.phylowidget.render.TreeRenderer

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.