setShape method

void setShape(
  1. Shape shape
)

The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.

Implementation

void setShape(Shape shape) {
  this.shape = shape;
}