question: public static Rectangle2D toAwtRectangle ( final Rectangle rect ) { final Rectangle2D rect2d = new Rectangle2D . Double ( ) ; rect2d . setRect ( rect . x , rect . y , rect . width , rect . height ) ; return rect2d ; }
target:  Transform a swt Rectangle instance into an awt one.