Package org.eclipse.draw2d.geometry

Examples of org.eclipse.draw2d.geometry.Point.scale()


    double middley = zoomedBounds.y + (zoomedBounds.height / 2);

    PointList ret = new PointList();
    for (int i = 0; i < points.size(); i++) {
      Point point = points.getPoint(i);
      point.scale(zoom);

      // translate all points towards the middle depending on the
      // line-width, so that the polyline remains inside the bounds
      // Note, that the delta has to be rounded up/down depending on the
      // relative location from point to middle.
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.