use of prefuse.data.Graph in project qi4j-sdk by Qi4j.
the class GraphPane method initQi4J.
public void initQi4J(ApplicationDetailDescriptor descriptor) {
Graph graph = GraphBuilder.buildGraph(descriptor);
Dimension size = getSize();
treeDisplay.setSize(size.width, size.height);
treeDisplay.run(graph);
graph = GraphBuilder.buildGraph(descriptor);
stackedDisplay.setSize(size.width, size.height);
stackedDisplay.run(graph);
}
use of prefuse.data.Graph in project jo-client-platform by jo-source.
the class TreeRootAction method run.
@Override
public void run(final double frac) {
final TupleSet focus = vis.getGroup(Visualization.FOCUS_ITEMS);
if (focus == null || focus.getTupleCount() == 0) {
return;
}
final Graph g = (Graph) vis.getGroup(m_group);
final Node node = getFirstContainingNode(g, focus);
if (node != null) {
g.getSpanningTree(node);
}
}