g.drawImage(this.image, x, y, Graphics.TOP | Graphics.LEFT ); x += this.imageWidth; leftBorder += this.imageWidth; y += this.yAdjust;
if (this.imageAlign == Graphics.LEFT ) { g.drawImage(this.image, x, y, Graphics.TOP | Graphics.LEFT ); x += this.imageWidth; leftBorder += this.imageWidth; y += this.yAdjust; } else if (this.imageAlign == Graphics.RIGHT ) { g.drawImage(this.image, rightBorder, y, Graphics.TOP | Graphics.RIGHT ); rightBorder -= this.imageWidth; y += this.yAdjust; } else if (this.imageAlign == Graphics.TOP ) { int centerX = leftBorder + ((rightBorder - leftBorder) / 2);   g.drawImage(this.image, centerX, y, Graphics.TOP | Graphics.HCENTER ); y += this.imageHeight; } else {  int centerX = leftBorder + ((rightBorder - leftBorder) / 2); int bottomY = y + this.contentHeight; g.drawImage(this.image, centerX, bottomY, Graphics.BOTTOM | Graphics.HCENTER ); }
	public void paintContent(int x, int y, int leftBorder, int rightBorder, Graphics g) {		// TODO enough consider the imagePosition		if (this.image != null) {			g.drawImage(this.image, x, y, Graphics.TOP | Graphics.LEFT );			x += this.imageWidth;			leftBorder += this.imageWidth;			y += this.yAdjust;		}		super.paintContent(x, y, leftBorder, rightBorder, g);	}