question: 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 ; }
target:  Creates a GeneralPath representing a polygon ring  having the given coordinate sequence. Uses the GeneralPath.WIND_EVEN_ODD winding rule.