Bug 161178 Support BORDER style for table rows
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/TableBorderCollisionArbiter.java
{
	/**
	 * Refresh the border data as per the current border setting and existing
	 * border setting, using the CSS2.0 border collision algorithm: if the style
	 * is none, always lose; then compare the width, greater win; if width is
	 * equal, compare the style, less win; or keep the original. This is the
	 * part 1 of the algorithm.
	 */
	public static void refreshBorderData( int[] data, int style, int width,
			int color, int rowIndex, int colIndex )
	{
		assert ( data.length > 4 );
		if ( style != 0 )
		{
			if ( width > data[1] || data[0] == 0 )
			{
				data[0] = style;
				data[1] = width;
				data[2] = color;
				data[3] = rowIndex;
				data[4] = colIndex;
			}
			else if ( width == data[1] && style < data[0] )
			{
				data[0] = style;
				data[2] = color;
				data[3] = rowIndex;