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

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 ; }
return a path for the patterned portion of an indeterminate progress bar .
