private void updateIndentation ( float indentLeft , float indentRight , float indentContent ) { if ( this . title != null ) { this . title . setIndentLeft ( ( int ) ( this . title . getIndentLeft ( ) + indentLeft * RtfElement . TWIPS_FACTOR ) ) ; this . title . setIndentRight ( ( int ) ( this . title . getIndentRight ( ) + indentRight * RtfElement . TWIPS_FACTOR ) ) ; } for ( int i = 0 ; i < this . items . size ( ) ; i ++ ) { RtfBasicElement rtfElement = ( RtfBasicElement ) this . items . get ( i ) ; if ( rtfElement instanceof RtfSection ) { ( ( RtfSection ) rtfElement ) . updateIndentation ( indentLeft + indentContent , indentRight , 0 ) ; } else if ( rtfElement instanceof RtfParagraph ) { ( ( RtfParagraph ) rtfElement ) . setIndentLeft ( ( int ) ( ( ( RtfParagraph ) rtfElement ) . getIndentLeft ( ) + ( indentLeft + indentContent ) * RtfElement . TWIPS_FACTOR ) ) ; ( ( RtfParagraph ) rtfElement ) . setIndentRight ( ( int ) ( ( ( RtfParagraph ) rtfElement ) . getIndentRight ( ) + indentRight * RtfElement . TWIPS_FACTOR ) ) ; } } }
Updates the left right and content indentation of all RtfParagraph and RtfSection elements that this RtfSection contains .