Esempio n. 1
0
  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);
      }
    }
  }
Esempio n. 2
0
  public void execute() {
    child.setHighlight(false);

    if (child instanceof CompoundModel) {
      removeHighlights((CompoundModel) child);
    }

    primExecute();
    parent.calculateSizeUp();
  }