protected void addRangeBounds ( BandData band , CellReference [ ] crefs ) { if ( templateBounds . containsKey ( band . getName ( ) ) ) return ; Bounds bounds = new Bounds ( crefs [ 0 ] . getRow ( ) , crefs [ 0 ] . getCol ( ) , crefs [ crefs . length - 1 ] . getRow ( ) , crefs [ crefs . length - 1 ] . getCol ( ) ) ; templateBounds . put ( band . getName ( ) , bounds ) ; }
This method adds range bounds to cache . Key is bandName