Examples of preciseY()


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

      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.preciseY()

      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
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.