if (data.lineStyle == SWT.LINE_SOLID) { OS.XSetLineAttributes(data.display, handle, width, OS.LineSolid, OS.CapButt, OS.JoinMiter); } else { OS.XSetLineAttributes(data.display, handle, width, OS.LineDoubleDash, OS.CapButt, OS.JoinMiter); }
int line_style = data.lineStyle == SWT.LINE_SOLID ? OS.LineSolid : OS.LineOnOffDash; OS.XSetLineAttributes(data.display, handle, width, line_style, OS.CapButt, OS.JoinMiter);
public void setLineWidth(int width) {	if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	if (data.lineStyle == SWT.LINE_SOLID) {		OS.XSetLineAttributes(data.display, handle, width, OS.LineSolid, OS.CapButt, OS.JoinMiter);	} else {		OS.XSetLineAttributes(data.display, handle, width, OS.LineDoubleDash, OS.CapButt, OS.JoinMiter);	}}