Examples of keepNodePosition()


Examples of org.freeplane.features.map.IMapSelection.keepNodePosition()

  public void actionPerformed(ActionEvent e) {
    final MapModel map = Controller.getCurrentController().getMap();
    final MNoteController noteController = (MNoteController) NoteController.getController();
    noteController.setShowNotesInMap(map, ! NoteController.getController().showNotesInMap(map));
    final IMapSelection selection = Controller.getCurrentController().getSelection();
    selection.keepNodePosition(selection.getSelected(), 0.0f, 0.0f);
    setSelected();
  }

  @Override
  public void setSelected() {
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.keepNodePosition()

      return;
    final NodeModel model = nodeView.getModel();
      TextController controller = TextController.getController();
    if (eventFromHideDisplayArea(e)){
      final IMapSelection selection = Controller.getCurrentController().getSelection();
      selection.keepNodePosition(model, 0.0f, 0.0f);
        controller.setDetailsHidden(model, ! DetailTextModel.getDetailText(model).isHidden());
    }
    else {
      nodeSelector.extendSelection(e);
      if (canEdit(controller) && isEditingStartEvent(e)) {
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.keepNodePosition()

        }
      }
      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 {
      Controller.getCurrentController().getViewController().setWaitingCursor(false);
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.keepNodePosition()

    checkDetailsEnabled();
    if(! foundDetails)
      return;
    isHidden = !isHidden;
    final IMapSelection selection = Controller.getCurrentController().getSelection();
    selection.keepNodePosition(selection.getSelected(), 0.0f, 0.0f);
    super.actionPerformed(e);
  }
 
   @Override
    protected void actionPerformed(ActionEvent e, NodeModel node) {
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.keepNodePosition()

  @Override
  public void actionPerformed(final ActionEvent e) {
    setShortened = !isShortened();
    final IMapSelection selection = Controller.getCurrentController().getSelection();
    selection.keepNodePosition(selection.getSelected(), 0.0f, 0.0f);
    super.actionPerformed(e);
  }
 
  private boolean isShortened() {
    final NodeModel node = Controller.getCurrentModeController().getMapController().getSelectedNode();
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.