import java.awt.geom.Ellipse2D; ... // allocate an inner class Float object of the Ellipse2D class return new Ellipse2D.Float( x, y, w, h );