private GeneralPath toPath(Coordinate[] coordinates){
  GeneralPath path=new GeneralPath(GeneralPath.WIND_EVEN_ODD,coordinates.length);
  if (coordinates.length > 0) {
    path.moveTo((float)coordinates[0].x,(float)coordinates[0].y);
    for (int i=0; i < coordinates.length; i++) {
      path.lineTo((float)coordinates[i].x,(float)coordinates[i].y);
    }
  }
  return path;
}

private GeneralPath toPath ( Coordinate [ ] coordinates ) { GeneralPath path = new GeneralPath ( GeneralPath . WIND_EVEN_ODD , coordinates . length ) ; if ( coordinates . length > 0 ) { path . moveTo ( ( float ) coordinates [ 0 ] . x , ( float ) coordinates [ 0 ] . y ) ; for ( int i = 0 ; i < coordinates . length ; i ++ ) { path . lineTo ( ( float ) coordinates [ i ] . x , ( float ) coordinates [ i ] . y ) ; } } return path ; }
creates a generalpath representing a polygon ring having the given coordinate sequence . uses the generalpath . wind_even_odd winding rule .
