while( ( titleTextLayout = measurer.nextLayout( wrappingWidth ) ) != null )
{
//---set the current line to where the title will be written
currentLine += titleTextLayout.getAscent();
titleTextLayout.draw( this.getGraphics2D(),
( ( this.getImageWidth() - titleTextLayout.getAdvance() ) / 2 ),
currentLine );
//---keep track of total height of all the title lines
height += titleTextLayout.getAscent() + titleTextLayout.getDescent();