public TreeRootAction(final String graphGroup) {
super(graphGroup);
}
public void run(final double frac) {
TupleSet focus = vis.getGroup(Visualization.FOCUS_ITEMS);
if (focus == null || focus.getTupleCount() == 0)
return;
Graph g = (Graph) vis.getGroup(m_group);
Node f = null;
Iterator tuples = focus.tuples();
while (tuples.hasNext() &&
!g.containsTuple(f=(Node)tuples.next())) {
f = null;
}
if (f == null) {