public void copyProviderDataToBuilder ( TemplateBuilder builder , TemplateBuilderDataProvider templateBuilderDataProvider ) { PageSize size = templateBuilderDataProvider . getPageSize ( ) ; if ( templateBuilderDataProvider . isLandscape ( ) ) { builder . setPageHeight ( size . getWidth ( ) ) ; builder . setPageWidth ( size . getHeight ( ) ) ; } else { builder . setPageHeight ( size . getHeight ( ) ) ; builder . setPageWidth ( size . getWidth ( ) ) ; } builder . setTitleText ( templateBuilderDataProvider . getTitle ( ) ) ; builder . setWithArrow ( templateBuilderDataProvider . isWithArrow ( ) ) ; builder . setWithScaleBar ( templateBuilderDataProvider . isWithScaleBar ( ) ) ; builder . setRasterDpi ( templateBuilderDataProvider . getRasterDpi ( ) ) ; builder . setDpi ( templateBuilderDataProvider . getDpi ( ) ) ; }
Fill the builder with information from the data provider . UTIL method .