afreechart/src/main/java/org/afree/chart/block/CenterArrangement.java
/**
     * Arranges the blocks in the container with a fixed with and a range
     * constraint on the height.
     * 
     * @param container
     *            the container.
     * @param canvas
     *            the graphics device.
     * @param constraint
     *            the constraint.
     * 
     * @return The size following the arrangement.
     */
Arranges the blocks in the container with a fixed with and a range
constraint on the height.

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

@return The size following the arrangement.
Arranges the blocks in the container with a fixed with and a range constraint on the height . @param container the container . @param canvas the graphics device . @param constraint the constraint . @return The size following the arrangement .
protected Size2D arrangeFR(BlockContainer container, Canvas canvas,
            RectangleConstraint constraint) {
        Size2D s = arrangeFN(container, canvas, constraint);
        if (constraint.getHeightRange().contains(s.height)) {
            return s;
        } else {
            RectangleConstraint c = constraint.toFixedHeight(constraint
                    .getHeightRange().constrain(s.getHeight()));
            return arrangeFF(container, canvas, c);
        }
    }
protected Size2D arrangeFR ( BlockContainer container , Canvas canvas , RectangleConstraint constraint ) { Size2D s = arrangeFN ( container , canvas , constraint ) ; if ( constraint . getHeightRange ( ) . contains ( s . height ) ) { return s ; } else { RectangleConstraint c = constraint . toFixedHeight ( constraint . getHeightRange ( ) . constrain ( s . getHeight ( ) ) ) ; return arrangeFF ( container , canvas , c ) ; } }
Arranges the blocks in the container with a fixed with and a range
 constraint on the height.
Arranges the blocks in the container with a fixed with and a range constraint on the height .