Shape clipped = clipShape(shape); if (clipped != null) {
  public void draw(Shape shape)  {    // Clip the shape.    Shape clipped = clipShape(shape);    if (clipped != null)      {        // Stroke the shape.        Shape strokedShape = stroke.createStrokedShape(clipped);        // Fill the shape.        fillShape(strokedShape);      }  }