public int getWidth ( int y ) { int maxx = 0 ; for ( int i = 0 ; i < size ( ) ; i ++ ) { Box box = getBox ( i ) ; if ( box . getBounds ( ) . y <= y && box . getBounds ( ) . y + box . getBounds ( ) . height > y ) { int wx = box . getBounds ( ) . x + box . getBounds ( ) . width ; if ( wx > maxx ) maxx = wx ; } } return maxx ; }
Gets the total width of the floating boxes in some point .