protected Size2D arrangeNN(BlockContainer container,Graphics2D g2){
  double maxW=0.0;
  double maxH=0.0;
  List blocks=container.getBlocks();
  Iterator iterator=blocks.iterator();
  while (iterator.hasNext()) {
    Block b=(Block)iterator.next();
    if (b != null) {
      Size2D s=b.arrange(g2,RectangleConstraint.NONE);
      maxW=Math.max(maxW,s.width);
      maxH=Math.max(maxH,s.height);
    }
  }
  double width=this.columns * maxW;
  double height=this.rows * maxH;
  RectangleConstraint c=new RectangleConstraint(width,height);
  return arrangeFF(container,g2,c);
}

protected Size2D arrangeNN ( BlockContainer container , Graphics2D g2 ) { double maxW = 0.0 ; double maxH = 0.0 ; List blocks = container . getBlocks ( ) ; Iterator iterator = blocks . iterator ( ) ; while ( iterator . hasNext ( ) ) { Block b = ( Block ) iterator . next ( ) ; if ( b != null ) { Size2D s = b . arrange ( g2 , RectangleConstraint . NONE ) ; maxW = Math . max ( maxW , s . width ) ; maxH = Math . max ( maxH , s . height ) ; } } double width = this . columns * maxW ; double height = this . rows * maxH ; RectangleConstraint c = new RectangleConstraint ( width , height ) ; return arrangeFF ( container , g2 , c ) ; }
arranges the container with no constraint on the width or height .
