public static Point toSwtPoint(final java.awt.geom.Point2D p){
  return new Point((int)Math.round(p.getX()),(int)Math.round(p.getY()));
}

public static Point toSwtPoint ( final java . awt . geom . Point2D p ) { return new Point ( ( int ) Math . round ( p . getX ( ) ) , ( int ) Math . round ( p . getY ( ) ) ) ; }
returns an swt point with the same coordinates as the specified awt point ( rounded to integer values ) .
