rect.x      = scaled(rect.x); rect.y      = scaled(rect.y); rect.width  = scaled(rect.width); rect.height = scaled(rect.height);
pt.x = scaled(pt.x); pt.y = scaled(pt.y);
    public void scale (Rectangle rect)    {        rect.x      = scaled(rect.x);        rect.y      = scaled(rect.y);        rect.width  = scaled(rect.width);        rect.height = scaled(rect.height);    }