public BidiRun getParagraphByIndex ( int paraIndex ) { verifyValidParaOrLine ( ) ; verifyRange ( paraIndex , 0 , paraCount ) ; Bidi bidi = paraBidi ; /* get Para object if Line object */ int paraStart ; if ( paraIndex == 0 ) { paraStart = 0 ; } else { paraStart = bidi . paras_limit [ paraIndex - 1 ] ; } BidiRun bidiRun = new BidiRun ( ) ; bidiRun . start = paraStart ; bidiRun . limit = bidi . paras_limit [ paraIndex ] ; bidiRun . level = GetParaLevelAt ( paraStart ) ; return bidiRun ; }
Get a paragraph given the index of this paragraph .