Ejemplo n.º 1
0
  @Override
  public void unexecute() {

    pane.getChildren().remove(linkPointView);
    pane.getChildren().remove(linkPointView.getPrevious());
    viewAltList.removeLinkPoint(linkPointView);
    // TODO remove controller
    executed = false;
  }
Ejemplo n.º 2
0
  @Override
  public void execute() {

    if (!executed) {
      pane.getChildren().add(linkPointView);

      // non first nodes
      if (linkPointView.getPrevious() != null) {
        pane.getChildren().add(linkPointView.getPrevious());
        linkPointView.getPrevious().toBack();
        viewAltList.append(linkPointView.getPrevious());
      }
      // first node
      else {
        viewAltList.append(linkPointView);
      }
    }

    // TODO add controller
    executed = true;
  }