afreechart/src/main/java/org/afree/chart/text/TextLine.java
/**
     * Calculate the offsets required to translate from the specified anchor
     * position to the left baseline position.
     * 
     * @param canvas
     *            the graphics device.
     * @param anchor
     *            the anchor position.
     * 
     * @return the offsets.
     */
Calculate the offsets required to translate from the specified anchor
position to the left baseline position.

@param canvas
the graphics device.
@param anchor
the anchor position.

@return the offsets.
Calculate the offsets required to translate from the specified anchor position to the left baseline position . @param canvas the graphics device . @param anchor the anchor position . @return the offsets .
private float calculateBaselineOffset(final TextAnchor anchor) {
        float result = 0.0f;
        final TextFragment fragment = getFirstTextFragment();
        if (fragment != null) {
            result = fragment.calculateBaselineOffset(anchor);
        }
        return result;
    }
private float calculateBaselineOffset ( final TextAnchor anchor ) { float result = 0.0f ; final TextFragment fragment = getFirstTextFragment ( ) ; if ( fragment != null ) { result = fragment . calculateBaselineOffset ( anchor ) ; } return result ; }
Calculate the offsets required to translate from the specified anchor
 position to the left baseline position.
Calculate the offsets required to translate from the specified anchor position to the left baseline position .