Examples of scrollBy()


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

      final int dy = originY - e.getY();
      final Rectangle visibleRect = component.getVisibleRect();
      final Rectangle r = new Rectangle(e.getX(), e.getY(), 1, 1);
      final boolean isEventPointVisible = visibleRect.contains(r);
      if (isEventPointVisible)
              mapView.scrollBy(dx, dy);
            else {
        mapView.scrollBy(dx/3, dy/3);
        originX += dx/3;
        originY += dy/3;
      }
View Full Code Here

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

      final Rectangle r = new Rectangle(e.getX(), e.getY(), 1, 1);
      final boolean isEventPointVisible = visibleRect.contains(r);
      if (isEventPointVisible)
              mapView.scrollBy(dx, dy);
            else {
        mapView.scrollBy(dx/3, dy/3);
        originX += dx/3;
        originY += dy/3;
      }
    }
  }
View Full Code Here

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

    if (mapView == null || SwingUtilities.isDescendingFrom(mapView, e.getComponent()))
      return;
    if(checkForScrollMap){
      switch (e.getKeyCode()) {
      case KeyEvent.VK_UP:
          mapView.scrollBy(0, -10);
          e.consume();
        return;
      case KeyEvent.VK_DOWN:
          mapView.scrollBy(0, 10);
          e.consume();
View Full Code Here

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

      case KeyEvent.VK_UP:
          mapView.scrollBy(0, -10);
          e.consume();
        return;
      case KeyEvent.VK_DOWN:
          mapView.scrollBy(0, 10);
          e.consume();
        return;
      case KeyEvent.VK_LEFT:
          mapView.scrollBy(-10, 0);
          e.consume();
View Full Code Here

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

      case KeyEvent.VK_DOWN:
          mapView.scrollBy(0, 10);
          e.consume();
        return;
      case KeyEvent.VK_LEFT:
          mapView.scrollBy(-10, 0);
          e.consume();
        return;
      case KeyEvent.VK_RIGHT:
          mapView.scrollBy(10, 0);
          e.consume();
View Full Code Here

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

      case KeyEvent.VK_LEFT:
          mapView.scrollBy(-10, 0);
          e.consume();
        return;
      case KeyEvent.VK_RIGHT:
          mapView.scrollBy(10, 0);
          e.consume();
      }
      return;
    }
    if ((e.isAltDown() || e.isControlDown() || e.isMetaDown())) {
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.