public void removeHighlights(CompoundModel mdl) { for (int i = 0; i < mdl.getChildren().size(); i++) { NodeModel node = (NodeModel) mdl.getChildren().get(i); node.setHighlight(false); if (node instanceof CompoundModel) { removeHighlights((CompoundModel) node); } } }
public void execute() { child.setHighlight(false); if (child instanceof CompoundModel) { removeHighlights((CompoundModel) child); } primExecute(); parent.calculateSizeUp(); }