if (this.isLayoutRight) { g.drawString( line, rightBorder, y, Graphics.TOP | Graphics.RIGHT ); } else if (this.isLayoutCenter) { g.drawString( line, centerX, y, Graphics.TOP | Graphics.HCENTER ); } else {  g.drawString( line, leftBorder, y, Graphics.TOP | Graphics.LEFT ); }
g.drawString( line, leftBorder, y, Graphics.TOP | Graphics.LEFT );
	public void paintContent(int x, int y, int leftBorder, int rightBorder, Graphics g) {		if (this.text != null) {			int lineHeight = this.font.getHeight() + this.paddingVertical; 			g.setFont( this.font );			g.setColor( this.textColor );			int centerX = (rightBorder - leftBorder) / 2;			for (int i = 0; i < this.textLines.length; i++) {				String line = this.textLines[i];				//TODO rob check layout when i != 0				if (i ==0) {					g.drawString( line, x, y, Graphics.TOP | Graphics.LEFT );				} else {					// needs to be checked:					if (this.isLayoutRight) {						g.drawString( line, rightBorder, y, Graphics.TOP | Graphics.RIGHT );					} else if (this.isLayoutCenter) {						g.drawString( line, centerX, y, Graphics.TOP | Graphics.HCENTER );					} else {						// left layout						g.drawString( line, leftBorder, y, Graphics.TOP | Graphics.LEFT );					}				}				y += lineHeight;			}		}	}