focus(true); installForeColor(data.foreground); OS.PenSize((short) fLineWidth, (short) fLineWidth); OS.MoveTo((short)x1, (short)y1); OS.LineTo((short)x2, (short)y2); unfocus(true);
try { if (focus(true, null)) { installForeColor(data.foreground); OS.PenSize((short) fLineWidth, (short) fLineWidth); OS.MoveTo((short)x1, (short)y1); OS.LineTo((short)x2, (short)y2); } } finally { unfocus(true); }
public void drawLine (int x1, int y1, int x2, int y2) {	if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	/* AW	OS.XDrawLine (data.display, data.drawable, handle, x1, y1, x2, y2);	*/	focus(true);	installForeColor(data.foreground);	OS.PenSize((short) fLineWidth, (short) fLineWidth);	OS.MoveTo((short)x1, (short)y1);	OS.LineTo((short)x2, (short)y2);	unfocus(true);}