data.lineStyle = lineStyle; OS.XSetLineAttributes(xDisplay, handle, values.line_width, OS.LineSolid, OS.CapButt, OS.JoinMiter); return;
line_style = OS.LineSolid; break;
public void setLineStyle(int lineStyle) {	if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	int xDisplay = data.display;	XGCValues values = new XGCValues ();	OS.XGetGCValues (xDisplay, handle, OS.GCLineWidth, values);	switch (lineStyle) {		case SWT.LINE_SOLID:			data.lineStyle = lineStyle;			OS.XSetLineAttributes(xDisplay, handle, values.line_width, OS.LineSolid, OS.CapButt, OS.JoinMiter);			return;		case SWT.LINE_DASH:			OS.XSetDashes(xDisplay,handle,0, new byte[] {6, 2},2);			break;		case SWT.LINE_DOT:			OS.XSetDashes(xDisplay,handle,0, new byte[] {3, 1},2);			break;		case SWT.LINE_DASHDOT:			OS.XSetDashes(xDisplay,handle,0, new byte[] {6, 2, 3, 1},4);			break;		case SWT.LINE_DASHDOTDOT:			OS.XSetDashes(xDisplay,handle,0, new byte[] {6, 2, 3, 1, 3, 1},6);			break;		default:			SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}	data.lineStyle = lineStyle;	OS.XSetLineAttributes(xDisplay, handle, values.line_width, OS.LineOnOffDash, OS.CapButt, OS.JoinMiter);	}