if ((style & SWT.BALLOON) != 0 && spikeAbove) y += TIP_HEIGHT;
if ((style & SWT.BALLOON) != 0) { if (spikeAbove) y += TIP_HEIGHT; gc.drawPolygon (borderPolygon); } else { Rectangle rect = tip.getClientArea (); gc.drawRectangle(rect.x, rect.y, rect.width - 1, rect.height -1); }
void onPaint (Event event) {	GC gc = event.gc;	int x = BORDER + PADDING;	int y = BORDER + PADDING;	if ((style & SWT.BALLOON) != 0 && spikeAbove) y += TIP_HEIGHT;	if (layoutText != null) {		int id = style & (SWT.ICON_ERROR | SWT.ICON_INFORMATION | SWT.ICON_WARNING);		if ((style & SWT.BALLOON) != 0 && id != 0) {			Display display = getDisplay ();			Image image = display.getSystemImage (id);			Rectangle rect = image.getBounds ();			gc.drawImage (image, 0, 0, rect.width, rect.height, x, y, IMAGE_SIZE, IMAGE_SIZE);			x += IMAGE_SIZE;		}		x += INSET;		layoutText.draw (gc, x, y);		y += 2 * PADDING + Math.max (IMAGE_SIZE, layoutText.getBounds ().height);	}	if (layoutMessage != null) {		x = BORDER + PADDING + INSET;		layoutMessage.draw (gc, x, y);	}}