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