question: public static Rectangle toSwtRectangle ( final Rectangle2D rect2d ) { return new Rectangle ( ( int ) Math . round ( rect2d . getMinX ( ) ) , ( int ) Math . round ( rect2d . getMinY ( ) ) , ( int ) Math . round ( rect2d . getWidth ( ) ) , ( int ) Math . round ( rect2d . getHeight ( ) ) ) ; }
target:  Transform an awt Rectangle2d instance into a swt one. The coordinates are rounded to integer for the swt object.