public void fillPolygon(int[] xPoints,int[] yPoints,int nPoints){
  int[] cX=xPoints;
  int[] cY=yPoints;
  if ((!impl.isTranslationSupported()) && (xTranslate != 0 || yTranslate != 0)) {
    cX=new int[nPoints];
    cY=new int[nPoints];
    System.arraycopy(xPoints,0,cX,0,nPoints);
    System.arraycopy(yPoints,0,cY,0,nPoints);
    for (int iter=0; iter < nPoints; iter++) {
      cX[iter]+=xTranslate;
      cY[iter]+=yTranslate;
    }
  }
  impl.fillPolygon(nativeGraphics,cX,cY,nPoints);
}

public void fillPolygon ( int [ ] xPoints , int [ ] yPoints , int nPoints ) { int [ ] cX = xPoints ; int [ ] cY = yPoints ; if ( ( ! impl . isTranslationSupported ( ) ) && ( xTranslate != 0 || yTranslate != 0 ) ) { cX = new int [ nPoints ] ; cY = new int [ nPoints ] ; System . arraycopy ( xPoints , 0 , cX , 0 , nPoints ) ; System . arraycopy ( yPoints , 0 , cY , 0 , nPoints ) ; for ( int iter = 0 ; iter < nPoints ; iter ++ ) { cX [ iter ] += xTranslate ; cY [ iter ] += yTranslate ; } } impl . fillPolygon ( nativeGraphics , cX , cY , nPoints ) ; }
fills a closed polygon defined by arrays of x and y coordinates . each pair of ( x , y ) coordinates defines a point .
