Removed AWT code from Rectangle2f