Bug 213965 Can only select the first four rows in the Data Preview table in chart builder.
description: Can only select the first four rows in the Data Preview table in chart builder. build version: 2.2.2 v20071228-1951 steps to reproduce: 1. Under preference->Report Design->Chart, set the Max row number of Data Preview larger than 4. 2. New a report. 3. New a datasource with sample DB and new a dataset with table CUSTOMERS. 4. Insert a chart to the report, bind the dataset, define customername as category and define customernumber as value series. On Date Preview table, try to select the rows at the bottom. Expected reslut: Rows can be selected and highlighted. Actual result: Rows can not be selected and rows at the top are highlighted.
chart/org.eclipse.birt.chart.ui/src/org/eclipse/birt/chart/ui/swt/CustomPreviewTable.java
implements
				PaintListener,
				MouseListener,
				SelectionListener
	{
		transient Color[] colors = null;
		private transient Vector[] cells = null;
		private transient int iSelectedRow = -1;
		private transient boolean bColumnSelection = false;
		private transient int iMaxRowIndex = 0;
		private transient boolean isFirstPaint = true;
		public static final int SCROLL_HORIZONTAL_STEP = 100;
		public TableCanvas( Composite parent, int style, int iColumns,
				Color[] colors, CustomPreviewTable container )
		{
			super( parent, style | SWT.H_SCROLL | SWT.V_SCROLL );
			addPaintListener( this );
			addMouseListener( this );
			addMouseListener( container );
			getHorizontalBar( ).addSelectionListener( this );
			getVerticalBar( ).addSelectionListener( this );
			cells = new Vector[iColumns];
			this.colors = new Color[iColumns];
			for ( int i = 0; i < iColumns; i++ )
			{
				cells[i] = new Vector( );