public static String generatePictureStyle ( final Sheet sheet1 , final FacesCell fcell , final Cell cell , final Picture pic ) { ClientAnchor anchor = pic . getClientAnchor ( ) ; if ( anchor != null ) { AnchorSize anchorSize = getAnchorSize ( sheet1 , fcell , cell , anchor ) ; if ( anchorSize != null ) { return "MARGIN-LEFT:" + String . format ( "%.2f" , anchorSize . getPercentLeft ( ) ) + "%;MARGIN-TOP:" + String . format ( "%.2f" , anchorSize . getPercentTop ( ) ) + "%;width:" + String . format ( "%.2f" , anchorSize . getPercentWidth ( ) ) + "%;" ; } } return "" ; }
Generate picture style .