Examples of scrollSmoothTo()


Examples of org.eclipse.draw2d.FigureCanvas.scrollSmoothTo()

    Point viewLocation = port.getViewLocation();
    Dimension diff = calculateDiff(portBounds, exposeRegion);
    if (diff != null) {
      viewLocation.x -= diff.width;
      viewLocation.y -= diff.height;
      canvas.scrollSmoothTo(viewLocation.x, viewLocation.y);
    }
  }

  private void exposeVertical(int offset) {
    if (_viewer == null) {
View Full Code Here

Examples of org.eclipse.draw2d.FigureCanvas.scrollSmoothTo()

    if (port == null) {
      return;
    }
    Point viewLocation = port.getViewLocation();
    viewLocation.y += offset;
    canvas.scrollSmoothTo(viewLocation.x, viewLocation.y);
  }

  private void exposeHorizontal(int offset) {
    if (_viewer == null) {
      return;
View Full Code Here

Examples of org.eclipse.draw2d.FigureCanvas.scrollSmoothTo()

    if (port == null) {
      return;
    }
    Point viewLocation = port.getViewLocation();
    viewLocation.x += offset;
    canvas.scrollSmoothTo(viewLocation.x, viewLocation.y);
  }

  private int calculateX(Rectangle portBounds, Rectangle caretRect) {
    int result = 0;
    if (portBounds.x > caretRect.getRight().x) {
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.