Package com.touchgraph.graphlayout

Examples of com.touchgraph.graphlayout.Node


    buildPanel();
    buildLens();
    tgPanel.setLensSet(tgLensSet);
    addUIs();
    try {
      Node rootNode = buildTouchGraphTree(root, 0);
      tgPanel.setLocale(rootNode, 4);
      tgPanel.setSelect(rootNode);
      setLocalityRadius(4);
      // try {
      // Thread.currentThread().sleep(1000);
View Full Code Here


                                          // treeNode.getAverageDuration(TimeUnit.MS)
                                          // +
                                          // "ms";
    //
    Color color = colorLookup.getColor(treeNode.getPctOfAvgParentDuration());
    Node node = new CallNode(getId(methodKey), title, treeNode, color);
    tgPanel.addNode(node);


    for (int i = 0; i < treeNode.getChildCount(); i++) {

      StackTreeNode child = (StackTreeNode) treeNode.getChildAt(i);
      Color edgeColor = colorLookup.getColor(child.getPctOfAvgParentDuration());
      Node childNode = buildTouchGraphTree(child, depth + 1);
      CallEdge edge = new CallEdge(node, childNode, edgeColor);
      tgPanel.addEdge(edge);

    }
    return node;
View Full Code Here

TOP

Related Classes of com.touchgraph.graphlayout.Node

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.