protected Size2D arrangeNN(BlockContainer container,Graphics2D g2){
  List blocks=container.getBlocks();
  Block b=(Block)blocks.get(0);
  Size2D s=b.arrange(g2,RectangleConstraint.NONE);
  b.setBounds(new Rectangle2D.Double(0.0,0.0,s.width,s.height));
  return new Size2D(s.width,s.height);
}

protected Size2D arrangeNN ( BlockContainer container , Graphics2D g2 ) { List blocks = container . getBlocks ( ) ; Block b = ( Block ) blocks . get ( 0 ) ; Size2D s = b . arrange ( g2 , RectangleConstraint . NONE ) ; b . setBounds ( new Rectangle2D . Double ( 0.0 , 0.0 , s . width , s . height ) ) ; return new Size2D ( s . width , s . height ) ; }
arranges the blocks without any constraints . this puts all blocks into a single row .
