void drawLetter(Graphics g,char letter,int ax,int ay,int aw,int ah,float align,int index){
  String str=formatItemNum(index,letter);
  str=isLeftToRight ? str + "." : "." + str;
  FontMetrics fm=SwingUtilities2.getFontMetrics(null,g);
  int stringwidth=SwingUtilities2.stringWidth(null,fm,str);
  int gap=isLeftToRight ? -(stringwidth + bulletgap) : (aw + bulletgap);
  int x=ax + gap;
  int y=Math.max(ay + fm.getAscent(),ay + (int)(ah * align));
  SwingUtilities2.drawString(null,g,str,x,y);
}

void drawLetter ( Graphics g , char letter , int ax , int ay , int aw , int ah , float align , int index ) { String str = formatItemNum ( index , letter ) ; str = isLeftToRight ? str + "." : "." + str ; FontMetrics fm = SwingUtilities2 . getFontMetrics ( null , g ) ; int stringwidth = SwingUtilities2 . stringWidth ( null , fm , str ) ; int gap = isLeftToRight ? - ( stringwidth + bulletgap ) : ( aw + bulletgap ) ; int x = ax + gap ; int y = Math . max ( ay + fm . getAscent ( ) , ay + ( int ) ( ah * align ) ) ; SwingUtilities2 . drawString ( null , g , str , x , y ) ; }
draws the letter or number for an ordered list .
