public void setRect(Rectangle2D r)
public void setRect(float x, float y, float w, float h)
    public void setRect(Rectangle2D r)    {      x = (float) r.getX();      y = (float) r.getY();      width = (float) r.getWidth();      height = (float) r.getHeight();    }