public void fillPolygon(int[] xPoints, int[] yPoints,int nPoints){int right  = findBiggest(xPoints);int bottom = findBiggest(yPoints);int left   = findSmallest(xPoints);int top    = findSmallest(yPoints);HSSFPolygon shape = escherGroup.createPolygon(new HSSFChildAnchor(left,top,right,bottom) );shape.setPolygonDrawArea(right - left, bottom - top);shape.setPoints(addToAll(xPoints, -left), addToAll(yPoints, -top));shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setFillColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());}

public void FillPolygon(int[] xPoints, int[] yPoints,int nPoints){int right = FindBiggest(xPoints);int bottom = FindBiggest(yPoints);int left = FindSmallest(xPoints);int top = FindSmallest(yPoints);HSSFPolygon shape = escherGroup.CreatePolygon(new HSSFChildAnchor(left, top, right, bottom));shape.SetPolygonDrawArea(right - left, bottom - top);shape.SetPoints(AddToAll(xPoints, -left), AddToAll(yPoints, -top));shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);shape.SetFillColor(foreground.R, foreground.G, foreground.B);}
