code: public Shape createProgressBarIndeterminatePattern(int x, int y, int w, int h) {
        final double wHalf   = w / 2.0;
        final double xOffset = 5;
        path.reset();
        path.moveTo(xOffset, 0);
        path.lineTo(xOffset+wHalf, 0);
        path.curveTo(xOffset+wHalf-5, h/2-4, xOffset+wHalf+5, h/2+4, xOffset+wHalf, h);
        path.lineTo(xOffset, h);
        path.curveTo(xOffset+5, h/2+4, xOffset-5, h/2-4, xOffset, 0);
        path.closePath();
  
          return path;
      }
docs: Return a path for the patterned portion of an indeterminate progress bar.
  
  @param  x the X coordinate of the upper-left corner of the region
  @param  y the Y coordinate of the upper-left corner of the region
  @param  w the width of the region
  @param  h the height of the region
  
  @return a path representing the shape.