debugger/enhanced_text_model/src/main/com/thesett/aima/logic/fol/wam/debugger/text/AttributeGridImpl.java
private void setRowAttribute(AttributeSet attributes, int r)
    {
        if (r >= rowAttributes.size())
        {
            for (int i = rowAttributes.size(); i <= r; i++)
            {
                rowAttributes.add(null);
            }
        }

        rowAttributes.set(r, attributes);
    }
private void setRowAttribute(AttributeSet attributes, int r)
    {
        if (r >= rowAttributes.size())
        {
            for (int i = rowAttributes.size(); i <= r; i++)
            {
                rowAttributes.add(null);
            }
        }

        rowAttributes.set(r, attributes);
    }
private void setRowAttribute ( AttributeSet attributes , int r ) { if ( r >= rowAttributes . size ( ) ) { for ( int i = rowAttributes . size ( ) ; i <= r ; i ++ ) { rowAttributes . add ( null ) ; } } rowAttributes . set ( r , attributes ) ; }
Sets a row attribute, adding padding to the underlying array as necessary to ensure it is large enough to hold
the attribute at the requested position.

@param attributes The attribute to set.
@param r          The row to set it on.
Sets a row attribute adding padding to the underlying array as necessary to ensure it is large enough to hold the attribute at the requested position .