int count = Math.max (1, parent.getColumnCount ()); if (0 > index || index > count -1) return getForeground (); int pixel = cellForeground != null ? cellForeground [index] : -1; return pixel == -1 ? getForeground () : Color.win32_new (display, pixel);
if (foreground == -1) return parent.getForeground (); return Color.win32_new (display, foreground);
public Color getForeground (int index) {	checkWidget ();	if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);	int count = Math.max (1, parent.getColumnCount ());	if (0 > index || index > count -1) return getForeground ();	int pixel = cellForeground != null ? cellForeground [index] : -1;	return pixel == -1 ? getForeground () : Color.win32_new (display, pixel);}