public long getCachedSize( final int colspan ) { final int idx = colspan - 1; if ( idx < cachedSize.size() ) { return cachedSize.get( idx ); } return 0; }
public long get( final int index ) { if ( index < 0 ) { throw new IndexOutOfBoundsException(); } if ( index >= size() ) { return 0; } return super.get( index ); }
public long getValidatedTrailingSize( final int rowSpan ) { if ( rowSpan > validatedTrailingSize.size() ) { return 0; } return validatedTrailingSize.get( rowSpan - 1 ); }
public long getPreferredSize( final int colspan ) { final int index = colspan - 1; if ( index < 0 ) { throw new IllegalArgumentException(); } if ( preferredSizes.size() <= index ) { return 0; } return preferredSizes.get( index ); }
public void updateDefinedSize( final int rowSpan, final long preferredHeight ) { if ( rowSpan < 1 ) { throw new IllegalArgumentException(); } final int idx = rowSpan - 1; if ( ( idx >= preferredSizes.size() ) || ( preferredSizes.get( idx ) < preferredHeight ) ) { preferredSizes.set( idx, preferredHeight ); } }
public void updateValidatedSize( final int rowSpan, final long leading, final long trailing ) { final int idx = rowSpan - 1; if ( validatedLeadingSize < leading ) { validatedLeadingSize = leading; } if ( ( idx >= validatedTrailingSize.size() ) || ( validatedTrailingSize.get( idx ) < trailing ) ) { validatedTrailingSize.set( idx, trailing ); } }
AttributeList rowAttributes = styleCache.getRowAttributes( row ); if ( rowAttributes == null ) { final int rowHeight = (int) StrictGeomUtility.toExternalValue( gridLayout.getCellHeights().get( row ) ); final HtmlRowBackgroundStruct struct = getCommonBackground( gridLayout, colCount, row ); rowAttributes = getTagHelper().createRowAttributes( rowHeight, struct );