g.drawImage(this.image, imgX, imgY, Graphics.LEFT | Graphics.TOP );
g.drawImage(this.image, imgX, centerY, Graphics.LEFT | Graphics.VCENTER );
	public void paint(int x, int y, int width, int height, Graphics g) {		if (!this.isLoaded) {			try {				this.image = StyleSheet.getImage(this.imageUrl, this, false);			} catch (IOException e) {				//#debug error				Debug.debug( "unable to load image [" + this.imageUrl + "]", e );			}			this.imageUrl = null;			this.isLoaded = true;		}		if (this.color != Item.TRANSPARENT) {			g.setColor( this.color );			g.fillRect( x, y, width + 1, height + 1 );		}		if (this.image != null) {			if (this.repeatMode == NO_REPEAT) {				int centerX = x + (width / 2);				int centerY = y + (height / 2);				g.drawImage(this.image, centerX, centerY, Graphics.HCENTER | Graphics.VCENTER );			} else {				int imgWidth = this.image.getWidth();				int imgHeight = this.image.getHeight();				int imgX = x;				int imgY = y;				int xStop = x + width;				int yStop = y + height;				if (this.repeatMode == REPEAT ) {										while (imgY < yStop ) {						while ( imgX < xStop ) {							g.drawImage(this.image, imgX, imgY, Graphics.LEFT | Graphics.TOP );							imgX += imgWidth;						}						imgY += imgHeight;						imgX = x;					}				} else if (this.repeatMode == REPEAT_X) {					while ( imgX < xStop ) {						g.drawImage(this.image, imgX, imgY, Graphics.LEFT | Graphics.TOP );						imgX += imgWidth;					}				} else {					// repeatMode == REPEAT_Y					while (imgY < yStop ) {						g.drawImage(this.image, imgX, imgY, Graphics.LEFT | Graphics.TOP );						imgY += imgHeight;					}				}			}		}	}