setTo method
Sets the x, y, width, and height values of this GRect instance to the specified values.
Returns this instance after updating its properties.
Implementation
GRect setTo(double x, double y, double width, double height) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
return this;
}