public void drawLabel(Graphics2D g2d){
  FontMetrics metrics=g2d.getFontMetrics(this.labelFont);
  int strHeight=metrics.getHeight();
  int yLineVal=this.yVal;
  for (  String label : this.splitAndTruncatedLabelList) {
    int xLineVal=this.xVal - (metrics.stringWidth(label) / 2);
    g2d.drawString(label,xLineVal,yLineVal);
    yLineVal+=strHeight;
  }
}

public void drawLabel ( Graphics2D g2d ) { FontMetrics metrics = g2d . getFontMetrics ( this . labelFont ) ; int strHeight = metrics . getHeight ( ) ; int yLineVal = this . yVal ; for ( String label : this . splitAndTruncatedLabelList ) { int xLineVal = this . xVal - ( metrics . stringWidth ( label ) / 2 ) ; g2d . drawString ( label , xLineVal , yLineVal ) ; yLineVal += strHeight ; } }
drays each line of the label
