Package org.freeplane.features.map

Examples of org.freeplane.features.map.NodeModel


    controller.setDetailsHidden(getDelegate(), hide);
    }

  // NodeRO: R
  public int getChildPosition(final Proxy.Node childNode) {
    final NodeModel childNodeModel = ((NodeProxy) childNode).getDelegate();
    return getDelegate().getChildPosition(childNodeModel);
  }
View Full Code Here


    return (noteText == null) ? null : new ConvertibleNoteText(getDelegate(), getScriptContext(), noteText);
  }

  // NodeRO: R
  public Proxy.Node getParent() {
    final NodeModel parentNode = getDelegate().getParentNode();
    return parentNode != null ? new NodeProxy(parentNode, getScriptContext()) : null;
  }
View Full Code Here

      displayFilterStatus();
      Controller.getCurrentController().getViewController().setWaitingCursor(true);
      final Filter oldFilter = map.getFilter();
      map.setFilter(this);
      if (force || !isConditionStronger(oldFilter)) {
        final NodeModel root = map.getRootNode();
        resetFilter(root);
        if (filterChildren(root, checkNode(root), false)) {
          addFilterResult(root, FilterInfo.FILTER_SHOW_ANCESTOR);
        }
      }
      final IMapSelection selection = Controller.getCurrentController().getSelection();
      final NodeModel selected = selection.getSelected();
      final NodeModel selectedVisible = selected.getVisibleAncestorOrSelf();
      selection.keepNodePosition(selectedVisible, 0.5f, 0.5f);
      refreshMap(source, map);
      selectVisibleNode();
    }
    finally {
View Full Code Here

        }
      }
      else
        next = true;
    }
    NodeModel selected = mapSelection.getSelected();
    if (!selected.isVisible()) {
      if(mapSelection.getSelection().size() > 1){
        mapSelection.toggleSelected(selected);
      }
      else
        mapSelection.selectAsTheOnlyOneSelected(selected.getVisibleAncestorOrSelf());
    }
    mapSelection.setSiblingMaxLevel(mapSelection.getSelected().getNodeLevel(false));
  }
View Full Code Here

        return ProxyUtils.createNodeList(Arrays.asList(getDelegate().getPathToRoot()), getScriptContext());
    }

    // NodeRO: R
    public Node getNext() {
        final NodeModel node = MapNavigationUtils.findNext(Direction.FORWARD, getDelegate(), null);
        return node == null ? null : new NodeProxy(node, getScriptContext());
    }
View Full Code Here

      // do nothing for not root nodes
      final XMLElement parentNodeElement = xml.getParent().getParent();
      if (parentNodeElement == null || !parentNodeElement.getName().equals("map")) {
        return;
      }
      NodeModel node = (NodeModel) userObject;
      loadMapStyleProperties(MapStyleModel.getExtension(node), xml);
       }
View Full Code Here

        return node == null ? null : new NodeProxy(node, getScriptContext());
    }
   
    // NodeRO: R
    public Node getPrevious() {
        final NodeModel node = MapNavigationUtils.findPrevious(Direction.BACK, getDelegate(), null);
        return node == null ? null : new NodeProxy(node, getScriptContext());
    }
View Full Code Here

    return Base64Coding.decode64(getDelegate().getText().replaceAll("\\s", ""));
  }

  // NodeRO: R
  public String getFormat() {
    final NodeModel nodeModel = getDelegate();
    final String format = TextController.getController().getNodeFormat(nodeModel);
    if (format == null && nodeModel.getUserObject() instanceof IFormattedObject)
      return ((IFormattedObject) nodeModel.getUserObject()).getPattern();
    return format;
  }
View Full Code Here

  }

  // NodeRO: R
  public boolean isDescendantOf(final Proxy.Node otherNode) {
    // no need to trace this since it's already logged
    final NodeModel otherNodeModel = ((NodeProxy) otherNode).getDelegate();
    NodeModel node = this.getDelegate();
    do {
      if (node.equals(otherNodeModel)) {
        return true;
      }
      node = node.getParentNode();
    } while (node != null);
    return false;
  }
View Full Code Here

    return getDelegate().isVisible();
  }

  // Node: R/W
  public void moveTo(final Proxy.Node parentNodeProxy) {
    final NodeModel parentNode = ((NodeProxy) parentNodeProxy).getDelegate();
        final NodeModel movedNode = getDelegate();
        final MMapController mapController = (MMapController) getModeController().getMapController();
        mapController.moveNodeAsChild(movedNode, parentNode, movedNode.isLeft(), parentNode.isLeft() != movedNode.isLeft());
  }
View Full Code Here

TOP

Related Classes of org.freeplane.features.map.NodeModel

Copyright © 2018 www.massapicom. 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.