public void updateChildren(VisualConnection connectionNode, BarState currentState) { for (VisualConnection child : connectionNode.getChildren()) if (child.getNode().isVisible()) { child.setState(currentState); updateChildren(child, currentState); } }
public void layoutChildren(VisualConnection connectionNode, BarState currentState) { for (VisualConnection child : connectionNode.getChildren()) if (child.getNode().isVisible()) { child.setState(currentState); child.layout(connectionNode.getFutureWidth()); layoutChildren(child, currentState); } }