afreechart/src/main/java/org/afree/chart/block/BorderArrangement.java
/**
     * Performs an arrangement with a fixed width and a range for the height.
     * 
     * @param container
     *            the container.
     * @param canvas
     *            the graphics device.
     * @param constraint
     *            the constraint.
     * 
     * @return The container size after the arrangement.
     */
Performs an arrangement with a fixed width and a range for the height.

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

@return The container size after the arrangement.
Performs an arrangement with a fixed width and a range for the height . @param container the container . @param canvas the graphics device . @param constraint the constraint . @return The container size after the arrangement .
protected Size2D arrangeFR(BlockContainer container, Canvas canvas,
            RectangleConstraint constraint) {
        Size2D size1 = arrangeFN(container, canvas, constraint.getWidth());
        if (constraint.getHeightRange().contains(size1.getHeight())) {
            return size1;
        } else {
            double h = constraint.getHeightRange().constrain(size1.getHeight());
            RectangleConstraint c2 = constraint.toFixedHeight(h);
            return arrange(container, canvas, c2);
        }
    }
protected Size2D arrangeFR ( BlockContainer container , Canvas canvas , RectangleConstraint constraint ) { Size2D size1 = arrangeFN ( container , canvas , constraint . getWidth ( ) ) ; if ( constraint . getHeightRange ( ) . contains ( size1 . getHeight ( ) ) ) { return size1 ; } else { double h = constraint . getHeightRange ( ) . constrain ( size1 . getHeight ( ) ) ; RectangleConstraint c2 = constraint . toFixedHeight ( h ) ; return arrange ( container , canvas , c2 ) ; } }
Performs an arrangement with a fixed width and a range for the height.
Performs an arrangement with a fixed width and a range for the height .