Examples of scrollNodeToVisible()


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

    final ModeController oldModeController = controller.getModeController();
    ModeController newModeController = oldModeController;
    if (pNewMap != null) {
      final IMapSelection mapSelection = getMapSelection();
      final NodeModel selected = mapSelection.getSelected();
      mapSelection.scrollNodeToVisible(selected);
      setZoomComboBox(getZoom());
      obtainFocusForSelected();
      newModeController = getModeController(pNewMap);
      if (newModeController != oldModeController) {
        controller.selectMode(newModeController);
View Full Code Here

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

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

    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

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

    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

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

    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

Examples of org.freeplane.view.swing.map.MapView.scrollNodeToVisible()

    final NodeView nodeView = (NodeView) SwingUtilities.getAncestorOfClass(NodeView.class, parent);
    final MapView mapView = (MapView) SwingUtilities.getAncestorOfClass(MapView.class, nodeView);
    if(mapView == null)
      return;
    if(layoutMapOnTextChange)
      mapView.scrollNodeToVisible(nodeView);
    else
      mapView.scrollRectToVisible(textfield.getBounds());
  }

  private void setLineWrap() {
View Full Code Here

Examples of org.freeplane.view.swing.map.MapView.scrollNodeToVisible()

    textfield.addKeyListener(textFieldListener);
    textfield.addMouseListener(textFieldListener);
    mapViewChangeListener = new MapViewChangeListener();
    Controller.getCurrentController().getMapViewManager().addMapViewChangeListener(mapViewChangeListener);
    SpellCheckerController.getController().enableAutoSpell(textfield, true);
    mapView.scrollNodeToVisible(nodeView);
    assert( parent.isValid());
    final int nodeWidth = parent.getWidth();
    final int nodeHeight = parent.getHeight();
    final Dimension textFieldSize;
    textfield.setBorder(new MatteBorder(2, 2, 2, 2, nodeView.getSelectedColor()));
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.