afreechart/src/main/java/org/afree/chart/block/CenterArrangement.java
/**
     * Arranges the blocks without any constraints. This puts all blocks into a
     * single row.
     * 
     * @param container
     *            the container.
     * @param canvas
     *            the graphics device.
     * 
     * @return The size after the arrangement.
     */
Arranges the blocks without any constraints. This puts all blocks into a
single row.

@param container
the container.
@param canvas
the graphics device.

@return The size after the arrangement.
Arranges the blocks without any constraints . This puts all blocks into a single row . @param container the container . @param canvas the graphics device . @return The size after the arrangement .
protected Size2D arrangeNN(BlockContainer container, Canvas canvas) {
        List blocks = container.getBlocks();
        Block b = (Block) blocks.get(0);
        Size2D s = b.arrange(canvas, RectangleConstraint.NONE);
        b.setBounds(new RectShape(0.0, 0.0, s.width, s.height));
        return new Size2D(s.width, s.height);
    }
protected Size2D arrangeNN ( BlockContainer container , Canvas canvas ) { List blocks = container . getBlocks ( ) ; Block b = ( Block ) blocks . get ( 0 ) ; Size2D s = b . arrange ( canvas , RectangleConstraint . NONE ) ; b . setBounds ( new RectShape ( 0.0 , 0.0 , s . width , s . height ) ) ; return new Size2D ( s . width , s . height ) ; }
Arranges the blocks without any constraints.
Arranges the blocks without any constraints .