protected void drawActor(int x,int y,int w,int h,Color fillColor,Paint fillPaint,Color penColor,boolean shadow){
  float width=w * 2 / 6;
  GeneralPath path=new GeneralPath();
  path.moveTo(x,y + h);
  path.curveTo(x,y + 3 * h / 5,x,y + 2 * h / 5,x + w / 2,y + 2 * h / 5);
  path.curveTo(x + w / 2 - width,y + 2 * h / 5,x + w / 2 - width,y,x + w / 2,y);
  path.curveTo(x + w / 2 + width,y,x + w / 2 + width,y + 2 * h / 5,x + w / 2,y + 2 * h / 5);
  path.curveTo(x + w,y + 2 * h / 5,x + w,y + 3 * h / 5,x + w,y + h);
  path.closePath();
  drawPath(path,fillColor,fillPaint,penColor,shadow);
}

protected void drawActor ( int x , int y , int w , int h , Color fillColor , Paint fillPaint , Color penColor , boolean shadow ) { float width = w * 2 / 6 ; GeneralPath path = new GeneralPath ( ) ; path . moveTo ( x , y + h ) ; path . curveTo ( x , y + 3 * h / 5 , x , y + 2 * h / 5 , x + w / 2 , y + 2 * h / 5 ) ; path . curveTo ( x + w / 2 - width , y + 2 * h / 5 , x + w / 2 - width , y , x + w / 2 , y ) ; path . curveTo ( x + w / 2 + width , y , x + w / 2 + width , y + 2 * h / 5 , x + w / 2 , y + 2 * h / 5 ) ; path . curveTo ( x + w , y + 2 * h / 5 , x + w , y + 3 * h / 5 , x + w , y + h ) ; path . closePath ( ) ; drawPath ( path , fillColor , fillPaint , penColor , shadow ) ; }
draws an actor shape for the given parameters .
