Package org.freeplane.view.swing.map

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


        public void run() {
          final Rectangle r = mainView.getBounds();
          UITools.convertRectangleToAncestor(mainView.getParent(), r, mapView);
          final boolean isEventPointVisible = mapView.getVisibleRect().contains(r);
          if (!isEventPointVisible) {
            mapView.scrollRectToVisible(r);
          }
        }
      });
    }
  }
View Full Code Here


    if(mapView == null)
      return;
    if(layoutMapOnTextChange)
      mapView.scrollNodeToVisible(nodeView);
    else
      mapView.scrollRectToVisible(textfield.getBounds());
  }

  private void setLineWrap() {
    if(null != textfield.getClientProperty("EditNodeTextField.linewrap") || inputMethodInUseListener.isIMEInUse()){
      return;
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.