setTo method

GRect setTo(
  1. double x,
  2. double y,
  3. double width,
  4. double height,
)

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;
}