private void drawTextLines(final Graphics2D g2d,final List<AttributedCharacterIterator> lines,final Color textColor,int leftMargin,int topMargin){
  int y=topMargin + LINE_ASCENT;
  for (  final AttributedCharacterIterator line : lines) {
    if (textColor == null) {
      g2d.setColor(Color.black);
    }
    g2d.setColor(textColor);
    g2d.drawString(line,leftMargin,y);
    y+=LINE_HEIGHT;
  }
}

private void drawTextLines ( final Graphics2D g2d , final List < AttributedCharacterIterator > lines , final Color textColor , int leftMargin , int topMargin ) { int y = topMargin + LINE_ASCENT ; for ( final AttributedCharacterIterator line : lines ) { if ( textColor == null ) { g2d . setColor ( Color . black ) ; } g2d . setColor ( textColor ) ; g2d . drawString ( line , leftMargin , y ) ; y += LINE_HEIGHT ; } }
draw a list of text lines .
