private static void isPlacement(final Collection<Polygon> countryPolygons,final Collection<Polygon> containedCountryPolygons,final List<Rectangle2D> placementRects,final List<Point> placementPoints,final Rectangle2D place,final int x,final int y){
  place.setFrame(x,y,PLACEWIDTH,PLACEHEIGHT);
  if (containedIn(place,countryPolygons) && !intersectsOneOf(place,placementRects) && (!containedIn(place,containedCountryPolygons) && !intersectsOneOf(place,containedCountryPolygons))) {
    placementPoints.add(new Point((int)place.getX(),(int)place.getY()));
    final Rectangle2D newRect=new Rectangle2D.Double();
    newRect.setFrame(place);
    placementRects.add(newRect);
  }
}

private static void isPlacement ( final Collection < Polygon > countryPolygons , final Collection < Polygon > containedCountryPolygons , final List < Rectangle2D > placementRects , final List < Point > placementPoints , final Rectangle2D place , final int x , final int y ) { place . setFrame ( x , y , PLACEWIDTH , PLACEHEIGHT ) ; if ( containedIn ( place , countryPolygons ) && ! intersectsOneOf ( place , placementRects ) && ( ! containedIn ( place , containedCountryPolygons ) && ! intersectsOneOf ( place , containedCountryPolygons ) ) ) { placementPoints . add ( new Point ( ( int ) place . getX ( ) , ( int ) place . getY ( ) ) ) ; final Rectangle2D newRect = new Rectangle2D . Double ( ) ; newRect . setFrame ( place ) ; placementRects . add ( newRect ) ; } }
isplacement ( java . tools . collection , java . tools . collection , java . tools . list , java . tools . list , java . awt . geom . rectangle2d , java . lang . int , java . lang . int )
