public int getColOfs ( int col ) throws ArrayIndexOutOfBoundsException { if ( col < width ) { int ofs = 0 ; for ( int i = 0 ; i < col ; i ++ ) ofs += cols [ i ] ; return ofs ; } else if ( col == width ) return abspos . getWidth ( ) ; else throw new ArrayIndexOutOfBoundsException ( col + ">" + width ) ; }
Finds the offset of the specified column from the grid origin .