Examples of MLocationController


Examples of org.freeplane.features.nodelocation.mindmapmode.MLocationController

    if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2
        && doubleClickTimer.getDelay() > 0) {
      final MainView mainView = (MainView) e.getComponent();
      if (mainView.getMouseArea().equals(MouseArea.MOTION)) {
        final Controller controller = Controller.getCurrentController();
        MLocationController locationController = (MLocationController) LocationController
            .getController(controller.getModeController());
        if (e.getModifiersEx() == 0) {
          final NodeView nodeV = getNodeView(e);
          final NodeModel node = nodeV.getModel();
          locationController.moveNodePosition(node, LocationModel.getModel(node).getVGap(),
              LocationModel.HGAP, 0);
          return;
        }
        if (Compat.isCtrlEvent(e)) {
          final NodeView nodeV = getNodeView(e);
          final NodeModel node = nodeV.getModel();
          locationController.moveNodePosition(node, LocationModel.VGAP, LocationModel.getModel(node)
              .getHGap(), LocationModel.getModel(node).getShiftY());
          return;
        }
      }
      else {
View Full Code Here

Examples of org.freeplane.features.nodelocation.mindmapmode.MLocationController

    int hgap = LocationModel.getModel(node).getHGap();
    final int shiftY = LocationModel.getModel(node).getShiftY();
    adjustNodeIndices(nodeV);
    resetPositions(node);
    final Controller controller = modeController.getController();
    MLocationController locationController = (MLocationController) LocationController.getController(controller
        .getModeController());
    locationController.moveNodePosition(node, parentVGap, hgap, shiftY);
    stopDrag();
  }
View Full Code Here

Examples of org.freeplane.features.nodelocation.mindmapmode.MLocationController

    LinkController.install(new MLinkController());
    NodeStyleController.install(new MNodeStyleController(modeController));
    ClipboardController.install(new MClipboardController());
    userInputListenerFactory.setNodeDragListener(new MNodeDragListener());
    userInputListenerFactory.setNodeDropTargetListener(new MNodeDropListener());
    LocationController.install(new MLocationController());
    final MLogicalStyleController logicalStyleController = new MLogicalStyleController(modeController);
    LogicalStyleController.install(logicalStyleController);
    logicalStyleController.initM();
    AttributeController.install(new MAttributeController(modeController));
    userInputListenerFactory.setNodeKeyListener(new DefaultNodeKeyListener(new IEditHandler() {
View Full Code Here

Examples of org.freeplane.features.nodelocation.mindmapmode.MLocationController

    final MTextController textController = new MTextController(modeController);
    TextController.install(textController);
    LinkController.install(new MLinkController());
    NodeStyleController.install(new MNodeStyleController(modeController));
    ClipboardController.install(new MClipboardController());
    LocationController.install(new MLocationController());
    final MLogicalStyleController logicalStyleController = new MLogicalStyleController(modeController);
    LogicalStyleController.install(logicalStyleController);
    logicalStyleController.initM();
    AttributeController.install(new MAttributeController(modeController));
    modeController.addAction(new EditAttributesAction());
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.