Examples of preciseX()


Examples of org.eclipse.draw2d.geometry.PrecisionPoint.preciseX()

      IFigure fig = new FadeIn(color);
      guide[offset] = fig;
      addFeedback(fig);
      fig.translateToRelative(loc);
      position = offset % 2 == 0 ? (int) Math.round(loc.preciseX()) : (int) Math.round(loc.preciseY());
      Rectangle figBounds = getFeedbackLayer().getBounds().getCopy();
      if ((offset % 2) != 0) {
        figBounds.height = 2;
        figBounds.y = position;
      } else {
View Full Code Here

Examples of org.eclipse.draw2d.geometry.PrecisionPoint.preciseX()

      PrecisionPoint endPoint = new PrecisionPoint(conn.getTargetAnchor().getLocation(ref2));     
      conn.translateToRelative(endPoint);

      DoublePoint p1, p2, p3, p4;
      p1 = new DoublePoint(startPoint.preciseX(), startPoint.preciseY());
      p4 = new DoublePoint(endPoint.preciseX(), endPoint.preciseY());
      double dist = PathUtil.dist(p1, p4) / 3;
      if (dist < MIN_CONTROLPT_DIST)
        dist = MIN_CONTROLPT_DIST;
      if (dist > MAX_CONTROLPT_DIST)
        dist = MAX_CONTROLPT_DIST;
View Full Code Here

Examples of org.eclipse.draw2d.geometry.PrecisionPoint.preciseX()

      if (dist < MIN_CONTROLPT_DIST)
        dist = MIN_CONTROLPT_DIST;
      if (dist > MAX_CONTROLPT_DIST)
        dist = MAX_CONTROLPT_DIST;
      p2 = new DoublePoint(startPoint.preciseX() + dist * 2, startPoint.y - dist * 1.5);
      p3 = new DoublePoint(endPoint.preciseX() + dist * 2, endPoint.y + dist * 1.5);
      List<Double> doubles = new ArrayList<Double>();
    PathUtil.recursiveBezier(p1.x, p1.y,
        p2.x, p2.y,
        p3.x, p3.y,
        p4.x, p4.y,
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.