public int getRowOfs ( int row ) throws ArrayIndexOutOfBoundsException { if ( row < height ) { int ofs = 0 ; for ( int i = 0 ; i < row ; i ++ ) ofs += rows [ i ] ; return ofs ; } else if ( row == height ) return abspos . getHeight ( ) ; else throw new ArrayIndexOutOfBoundsException ( row + ">" + height ) ; }
Finds the offset of the specified row from the grid origin .