public void set(double x, double y, double w, double h)
    {
        this.x = x;
        this.y = y;
        width = w;
        height = h;
    }
public void set ( double x , double y , double w , double h ) { this . x = x ; this . y = y ; width = w ; height = h ; }
Sets the location and size.

@param x The horizontal location.
@param y The vertical location.
@param w The rectangle width.
@param h The rectangle height.