Package org.eclipse.draw2d.geometry

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


   * @see RotatableDecoration#setReferencePoint(Point)
   */
  public void setReferencePoint(Point ref) {
    Point pt = Point.SINGLETON;
    pt.setLocation(ref);
    pt.negate().translate(location);
    setRotation(Math.atan2(pt.y, pt.x));
   
    this.repaint();
  }

View Full Code Here


   * @see RotatableDecoration#setReferencePoint(Point)
   */
  public void setReferencePoint(Point ref) {
    Point pt = Point.SINGLETON;
    pt.setLocation(ref);
    pt.negate().translate(location);
    setRotation(Math.atan2(pt.y, pt.x));
   
    this.repaint();
  }

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.