afreechart/src/main/java/org/afree/chart/title/TextTitle.java
/**
     * Arranges the content for this title assuming a range constraint for the
     * width and no bounds on the height, and returns the required size. This
     * will reflect the fact that a text title positioned on the left or right
     * of a chart will be rotated by 90 degrees.
     * 
     * @param canvas
     *            the graphics target.
     * @param widthRange
     *            the range for the width.
     * 
     * @return The content size.
     * 
     * @since JFreeChart 1.0.9
     */
Arranges the content for this title assuming a range constraint for the
width and no bounds on the height, and returns the required size. This
will reflect the fact that a text title positioned on the left or right
of a chart will be rotated by 90 degrees.

@param canvas
the graphics target.
@param widthRange
the range for the width.

@return The content size.


Arranges the content for this title assuming a range constraint for the width and no bounds on the height and returns the required size . This will reflect the fact that a text title positioned on the left or right of a chart will be rotated by 90 degrees . @param canvas the graphics target . @param widthRange the range for the width . @return The content size .
protected Size2D arrangeRN(Canvas canvas, Range widthRange) {
        Size2D s = arrangeNN(canvas);
        if (widthRange.contains(s.getWidth())) {
            return s;
        }
        double ww = widthRange.constrain(s.getWidth());
        return arrangeFN(canvas, ww);
    }
protected Size2D arrangeRN ( Canvas canvas , Range widthRange ) { Size2D s = arrangeNN ( canvas ) ; if ( widthRange . contains ( s . getWidth ( ) ) ) { return s ; } double ww = widthRange . constrain ( s . getWidth ( ) ) ; return arrangeFN ( canvas , ww ) ; }
Arranges the content for this title assuming a range constraint for the
 width and no bounds on the height, and returns the required size.
Arranges the content for this title assuming a range constraint for the width and no bounds on the height and returns the required size .