public Shape createArrowDown(final double x,final double y,final double w,final double h){
  path.reset();
  path.moveTo(x,y);
  path.lineTo(x + w / 2,y + h);
  path.lineTo(x + w,y);
  path.closePath();
  return path;
}

public Shape createArrowDown ( final double x , final double y , final double w , final double h ) { path . reset ( ) ; path . moveTo ( x , y ) ; path . lineTo ( x + w / 2 , y + h ) ; path . lineTo ( x + w , y ) ; path . closePath ( ) ; return path ; }
return a path for an arrow pointing down .
