public static Paragraph getParagraph ( Properties attributes ) { Paragraph paragraph = new Paragraph ( getPhrase ( attributes ) ) ; String value ; value = attributes . getProperty ( ElementTags . ALIGN ) ; if ( value != null ) { paragraph . setAlignment ( value ) ; } value = attributes . getProperty ( ElementTags . INDENTATIONLEFT ) ; if ( value != null ) { paragraph . setIndentationLeft ( Float . parseFloat ( value + "f" ) ) ; } value = attributes . getProperty ( ElementTags . INDENTATIONRIGHT ) ; if ( value != null ) { paragraph . setIndentationRight ( Float . parseFloat ( value + "f" ) ) ; } return paragraph ; }
Creates a Paragraph object based on a list of properties .