protected void drawRhombus(int x,int y,int w,int h,Color fillColor,Paint fillPaint,Color penColor,boolean shadow){
  int halfWidth=w / 2;
  int halfHeight=h / 2;
  Polygon rhombus=new Polygon();
  rhombus.addPoint(x + halfWidth,y);
  rhombus.addPoint(x + w,y + halfHeight);
  rhombus.addPoint(x + halfWidth,y + h);
  rhombus.addPoint(x,y + halfHeight);
  drawPolygon(rhombus,fillColor,fillPaint,penColor,shadow);
}

protected void drawRhombus ( int x , int y , int w , int h , Color fillColor , Paint fillPaint , Color penColor , boolean shadow ) { int halfWidth = w / 2 ; int halfHeight = h / 2 ; Polygon rhombus = new Polygon ( ) ; rhombus . addPoint ( x + halfWidth , y ) ; rhombus . addPoint ( x + w , y + halfHeight ) ; rhombus . addPoint ( x + halfWidth , y + h ) ; rhombus . addPoint ( x , y + halfHeight ) ; drawPolygon ( rhombus , fillColor , fillPaint , penColor , shadow ) ; }
draws a rhombus ( aka . diamond ) for the given parameters .
