Package org.freeplane.features.ui

Examples of org.freeplane.features.ui.IMapViewManager.scrollNodeToVisible()


                                                 final NodeModel node) {
    if (node == null) {
      return;
    }
    final IMapViewManager viewController = Controller.getCurrentController().getMapViewManager();
    viewController.scrollNodeToVisible(node);
    final Component c = viewController.getComponent(node);
    UITools.setDialogLocationRelativeTo(dialog, c);
  }

  public static void setDialogLocationUnder(final JDialog dialog, final NodeModel node) {
View Full Code Here


    final Component parentComponent;
    if (node == null) {
      parentComponent = getFrame();
    }
    else {
      viewController.scrollNodeToVisible(node);
      parentComponent = viewController.getComponent(node);
    }
    return JOptionPane.showConfirmDialog(parentComponent, message, title, optionType, messageType);
  }
View Full Code Here

    if (node == null) {
      return null;
    }
    final Controller controller = Controller.getCurrentController();
    final IMapViewManager viewController = controller.getMapViewManager();
    viewController.scrollNodeToVisible(node);
    final Component parentComponent = viewController.getComponent(node);
    return JOptionPane.showInputDialog(parentComponent, message, initialValue);
  }

  public static String showInputDialog( final NodeModel node, final String text,
View Full Code Here

    if (node == null) {
      return null;
    }
    final Controller controller = Controller.getCurrentController();
    final IMapViewManager viewController = controller.getMapViewManager();
    viewController.scrollNodeToVisible(node);
    final Component parentComponent = viewController.getComponent(node);
    return JOptionPane.showInputDialog(parentComponent, text, title, type);
  }

  public static final String SCROLLBAR_INCREMENT = "scrollbar_increment";
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.