Package com.google.devtools.depan.view

Examples of com.google.devtools.depan.view.TreeModel


  }

  public static <F> GraphData<F> createGraphData(
      NodeTreeProvider<F> provider,
      GraphModel graph, DirectedRelationFinder relFinder) {
    TreeModel hierarchy =
        new HierarchicalTreeModel(graph.computeSpanningHierarchy(relFinder));
    return new GraphData<F>(provider, hierarchy);
  }
View Full Code Here


    return baseData;
  }

  private GraphData<T> excludedNodes(GraphData<T> baseData) {
    TreeModel baseTree = baseData.getTreeModel();
    Collection<GraphNode> included = baseTree.computeTreeNodes();
    return hierarchies.excludedNodes(included);
  }
View Full Code Here

    return exposedGraph;
  }

  public void autoCollapse(DirectedRelationFinder finder, Object author) {
    GraphData<NodeDisplayProperty> tree = hierarchies.getHierarchy(finder);
    TreeModel treeData = tree.getTreeModel();
    collapseTree(treeData, author);
  }
View Full Code Here

  }

  public GraphData<T> allNodes() {
    Collection<GraphNode> nodes = graph.getNodes();

    TreeModel hierarchy = new TreeModel.Flat(nodes);
    return new GraphData<T>(provider, hierarchy );
  }
View Full Code Here

  public GraphData<T> excludedNodes(Collection<GraphNode> included) {
    Collection<GraphNode> nodes = Lists.newArrayList(graph.getNodes());
    nodes.removeAll(included);

    TreeModel hierarchy = new TreeModel.Flat(nodes);
    return new GraphData<T>(provider, hierarchy );
  }
View Full Code Here

TOP

Related Classes of com.google.devtools.depan.view.TreeModel

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.