Examples of clones()


Examples of org.freeplane.features.map.NodeModel.clones()

  }

  public void deleteNode(final NodeModel node) {
      final NodeModel parentNode = node.getParentNode();
    final int index = parentNode.getIndex(node);
    for(NodeModel parentClone : parentNode.clones())
      deleteSingleNode(parentClone, index);
  }

  private void deleteSingleNode(final NodeModel parentNode, final int index) {
    final NodeModel node = parentNode.getChildAt(index);
View Full Code Here

Examples of org.freeplane.features.map.NodeModel.clones()


    final NodeModel oldParent = child.getParentNode();
    final int oldIndex = oldParent.getChildPosition(child);
    if (oldParent != newParent || oldIndex != newIndex || changeSide != false) {
      final Set<NodeModel> oldParentClones = new HashSet<NodeModel>(oldParent.clones().toCollection());
      final Set<NodeModel> newParentClones = new HashSet<NodeModel>(newParent.clones().toCollection());

      final NodeRelativePath nodeRelativePath = new NodeRelativePath(oldParent, newParent);

      final NodeModel commonAncestor = nodeRelativePath.commonAncestor();
View Full Code Here

Examples of org.freeplane.features.map.NodeModel.clones()

      final Set<NodeModel> newParentClones = new HashSet<NodeModel>(newParent.clones().toCollection());

      final NodeRelativePath nodeRelativePath = new NodeRelativePath(oldParent, newParent);

      final NodeModel commonAncestor = nodeRelativePath.commonAncestor();
      for (NodeModel commonAncestorClone: commonAncestor.clones()){
          NodeModel oldParentClone = nodeRelativePath.pathBegin(commonAncestorClone);
          NodeModel newParentClone = nodeRelativePath.pathEnd(commonAncestorClone);
          moveSingleNode(oldParentClone.getChildAt(oldIndex), newParentClone, newIndex, isLeft, changeSide);
          oldParentClones.remove(oldParentClone);
          newParentClones.remove(newParentClone);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.