afreechart/src/main/java/org/afree/chart/title/CompositeTitle.java
/**
     * Arranges the contents of the block, within the given constraints, and
     * returns the block size.
     *
     * @param canvas  the graphics device.
     * @param constraint  the constraint (<code>null</code> not permitted).
     *
     * @return The block size (in Canvas units, never <code>null</code>).
     */
Arranges the contents of the block, within the given constraints, and
returns the block size.

@param canvas  the graphics device.
@param constraint  the constraint (null not permitted).

@return The block size (in Canvas units, never null).
Arranges the contents of the block within the given constraints and returns the block size . @param canvas the graphics device . @param constraint the constraint ( null not permitted ) . @return The block size ( in Canvas units never null ) .
public Size2D arrange(Canvas canvas, RectangleConstraint constraint) {
        RectangleConstraint contentConstraint = toContentConstraint(constraint);
        Size2D contentSize = this.container.arrange(canvas, contentConstraint);
        return new Size2D(calculateTotalWidth(contentSize.getWidth()),
                calculateTotalHeight(contentSize.getHeight()));
    }
public Size2D arrange ( Canvas canvas , RectangleConstraint constraint ) { RectangleConstraint contentConstraint = toContentConstraint ( constraint ) ; Size2D contentSize = this . container . arrange ( canvas , contentConstraint ) ; return new Size2D ( calculateTotalWidth ( contentSize . getWidth ( ) ) , calculateTotalHeight ( contentSize . getHeight ( ) ) ) ; }
Arranges the contents of the block, within the given constraints, and
 returns the block size.
Arranges the contents of the block within the given constraints and returns the block size .