本文整理汇总了Java中org.eclipse.birt.report.engine.api.IRenderOption类的典型用法代码示例。如果您正苦于以下问题:Java IRenderOption类的具体用法?Java IRenderOption怎么用?Java IRenderOption使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRenderOption类属于org.eclipse.birt.report.engine.api包,在下文中一共展示了IRenderOption类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getPreferredRenderOption
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
public IRenderOption getPreferredRenderOption( )
{
EXCELRenderOption renderOption = new EXCELRenderOption( );
renderOption.setEmitterID( getID( ) );
renderOption.setOutputFormat( "xls" ); //$NON-NLS-1$
if ( values != null && values.length > 0 )
{
for ( IOptionValue optionValue : values )
{
if ( optionValue != null )
{
renderOption.setOption( optionValue.getName( ),
optionValue.getValue( ) );
}
}
}
return renderOption;
}
开发者ID:eclipse,项目名称:birt,代码行数:22,代码来源:ExcelEmitterDescriptor.java示例2: renderPDFReport
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
@Override
public void renderPDFReport(String reportName,
Map<String, Object> parameters, OutputStream out)
throws BirtReportException {
try {
IRunAndRenderTask runAndRenderTask = createRunAndRenderTask(
reportName);
injectParameters(parameters, runAndRenderTask);
PDFRenderOption pdfOptions = new PDFRenderOption();
pdfOptions.setOutputFormat(IRenderOption.OUTPUT_FORMAT_PDF);
pdfOptions.setOutputStream(out);
pdfOptions.setEmbededFont(true); // TODO idueppe - should be
// configurable from cockpit
pdfOptions.setImageHandler(new HTMLServerImageHandler());
runAndRenderTask(runAndRenderTask, pdfOptions);
} catch (EngineException | IOException e) {
throw new RenderReportException("pdf", reportName, e);
}
}
开发者ID:interseroh,项目名称:report-cockpit-birt-web,代码行数:24,代码来源:BirtReportServiceBean.java示例3: getPreferredRenderOption
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
public IRenderOption getPreferredRenderOption( )
{
EXCELRenderOption renderOption = new EXCELRenderOption( );
renderOption.setEmitterID( getID( ) );
renderOption.setOutputFormat( "ods" ); //$NON-NLS-1$
if ( values != null && values.length > 0 )
{
for ( IOptionValue optionValue : values )
{
if ( optionValue != null )
{
renderOption.setOption(
getRenderOptionName( optionValue.getName( ) ),
optionValue.getValue( ) );
}
}
}
return renderOption;
}
开发者ID:eclipse,项目名称:birt,代码行数:23,代码来源:OdsEmitterDescriptor.java示例4: getPreferredRenderOption
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
@Override
public IRenderOption getPreferredRenderOption( )
{
RenderOption renderOption = new RenderOption( );
renderOption.setEmitterID( getID( ) );
renderOption.setOutputFormat( "postscript" ); //$NON-NLS-1$
if ( values != null && values.length > 0 )
{
for ( IOptionValue optionValue : values )
{
if ( optionValue != null )
{
renderOption.setOption(
getRenderOptionName( optionValue.getName( ) ),
optionValue.getValue( ) );
}
}
}
return renderOption;
}
开发者ID:eclipse,项目名称:birt,代码行数:24,代码来源:PostscriptEmitterDescriptor.java示例5: retrieveRtLFlag
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
/**
* Figures out the RTL rendering option.
*
* @param htmlOption
* @author bidi_hcg
*/
private void retrieveRtLFlag( )
{
// If htmlOption has RTL_FLAG option set (likely adopted from an URL
// parameter), honor this option, otherwise obtain direction from
// the report design.
HTMLRenderOption htmlOption = new HTMLRenderOption( renderOption );
Object bidiFlag = htmlOption.getOption( IRenderOption.RTL_FLAG );
if ( Boolean.TRUE.equals( bidiFlag ) )
{
htmlRtLFlag = true;
}
else if ( bidiFlag == null && report != null)
{
ReportDesignHandle handle = report.getDesign( ).getReportDesign( );
if ( handle != null )
{
htmlRtLFlag = handle.isDirectionRTL( );
htmlOption.setHtmlRtLFlag( htmlRtLFlag ); // not necessary though
}
}
}
开发者ID:eclipse,项目名称:birt,代码行数:28,代码来源:HTMLReportEmitter.java示例6: start
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
@Override
public void start( IReportContent report ) throws BirtException
{
super.start( report );
Object dpi = report
.getReportContext( ).getRenderOption( ).getOption(
IRenderOption.RENDER_DPI );
int renderDpi =0;
if ( dpi != null && dpi instanceof Integer )
{
renderDpi = ( (Integer) dpi ).intValue( );
}
int reportDpi = PropertyUtil.getRenderDpi( report, renderDpi );
context.setReportDpi( reportDpi );
this.reportContent = report;
}
开发者ID:eclipse,项目名称:birt,代码行数:17,代码来源:AbstractOdfEmitter.java示例7: parsePageSize
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
private void parsePageSize( IReportContent report )
{
Object dpi = report.getReportContext( ).getRenderOption( ).getOption(
IRenderOption.RENDER_DPI );
int renderDpi = 0;
if ( dpi != null && dpi instanceof Integer )
{
renderDpi = ( (Integer) dpi ).intValue( );
}
reportDpi = PropertyUtil.getRenderDpi( report, renderDpi );
SimpleMasterPageDesign masterPage = (SimpleMasterPageDesign) report
.getDesign( ).getPageSetup( ).getMasterPage( 0 );
this.pageWidth = OdfUtil.convertDimensionType( masterPage
.getPageWidth( ), 0, reportDpi );
int leftmargin = OdfUtil.convertDimensionType( masterPage
.getLeftMargin( ), pageWidth, reportDpi );
int rightmargin = OdfUtil.convertDimensionType( masterPage
.getRightMargin( ), pageWidth, reportDpi );
this.contentwidth = pageWidth - leftmargin - rightmargin;
this.pageHeight = OdfUtil.convertDimensionType( masterPage
.getPageHeight( ), 0, reportDpi );
}
开发者ID:eclipse,项目名称:birt,代码行数:23,代码来源:OdsEmitter.java示例8: setupRenderOptions
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
private void setupRenderOptions()
{
IRenderOption renderOptions = service.getRenderOption( );
Object textWrapping = renderOptions.getOption(IExcelRenderOption.WRAPPING_TEXT);
if(textWrapping!=null && textWrapping instanceof Boolean)
{
context.setWrappingText((Boolean)textWrapping);
}
else
{
context.setWrappingText( ( Boolean )true);
}
Object hideGridlines = renderOptions
.getOption( IExcelRenderOption.HIDE_GRIDLINES );
if ( hideGridlines != null && hideGridlines instanceof Boolean )
{
context.setHideGridlines( (Boolean) hideGridlines );
}
else
{
context.setHideGridlines( (Boolean) false );
}
}
开发者ID:eclipse,项目名称:birt,代码行数:25,代码来源:OdsEmitter.java示例9: getResourceRenderURL
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
public String getResourceRenderURL( String resourceName )
{
IRenderOption option = context.getRenderOption( );
if ( option != null )
{
IHTMLImageHandler imageHandler = option.getImageHandler( );
if ( imageHandler != null )
{
URL resourceUrl = context.getResource( resourceName );
if ( resourceUrl != null )
{
Image image = new Image( resourceUrl.toExternalForm( ) );
if ( image.getSource( ) == Image.FILE_IMAGE )
{
return imageHandler.onFileImage( image, this );
}
return imageHandler.onURLImage( image, this );
}
}
}
return resourceName;
}
开发者ID:eclipse,项目名称:birt,代码行数:23,代码来源:ReportContextImpl.java示例10: getOutputFormat
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
public String getOutputFormat( )
{
String outputFormat = null;
if ( renderOption != null )
{
outputFormat = renderOption.getOutputFormat( );
}
if ( outputFormat == null )
{
if ( isFixedLayout( ) )
{
outputFormat = IRenderOption.OUTPUT_FORMAT_PDF;
}
else
{
outputFormat = IRenderOption.OUTPUT_FORMAT_HTML;
}
}
return outputFormat;
}
开发者ID:eclipse,项目名称:birt,代码行数:21,代码来源:ExecutionContext.java示例11: PDFLayoutEmitterProxy
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
public PDFLayoutEmitterProxy( IReportExecutor executor,
IContentEmitter emitter, IRenderOption renderOptions,
Locale locale, long totalPage )
{
this.executor = executor;
this.outputEmitter = emitter;
context = new LayoutEngineContext( );
setupLayoutOptions( renderOptions );
if ( renderOptions != null )
{
String format = renderOptions.getOutputFormat( );
context.setFormat( format );
}
context.setLocale( locale );
context.totalPage = totalPage;
createLayoutEmitterImpl( context );
context.setEmitter( layoutEmitterImpl );
}
开发者ID:eclipse,项目名称:birt,代码行数:20,代码来源:PDFLayoutEmitterProxy.java示例12: getPreferredRenderOption
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
@Override
public IRenderOption getPreferredRenderOption( )
{
PDFRenderOption renderOption = new PDFRenderOption( );
renderOption.setEmitterID( getID( ) );
renderOption.setOutputFormat( "odp" ); //$NON-NLS-1$
if ( values != null && values.length > 0 )
{
for ( IOptionValue optionValue : values )
{
if ( optionValue != null )
{
renderOption.setOption(
getRenderOptionName( optionValue.getName( ) ),
optionValue.getValue( ) );
}
}
}
return renderOption;
}
开发者ID:eclipse,项目名称:birt,代码行数:24,代码来源:ODPEmitterDescriptor.java示例13: getPreferredRenderOption
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
@Override
public IRenderOption getPreferredRenderOption( )
{
RenderOption renderOption = new RenderOption( );
renderOption.setEmitterID( getID( ) );
renderOption.setOutputFormat( "docx" ); //$NON-NLS-1$
if ( values != null && values.length > 0 )
{
for ( IOptionValue optionValue : values )
{
if ( optionValue != null )
{
renderOption.setOption(
getRenderOptionName( optionValue.getName( ) ),
optionValue.getValue( ) );
}
}
}
return renderOption;
}
开发者ID:eclipse,项目名称:birt,代码行数:24,代码来源:DocxEmitterDescriptor.java示例14: getPreferredRenderOption
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
@Override
public IRenderOption getPreferredRenderOption( )
{
PDFRenderOption renderOption = new PDFRenderOption( );
renderOption.setEmitterID( getID( ) );
renderOption.setOutputFormat( "pptx" ); //$NON-NLS-1$
if ( values != null && values.length > 0 )
{
for ( IOptionValue optionValue : values )
{
if ( optionValue != null )
{
renderOption.setOption(
getRenderOptionName( optionValue.getName( ) ),
optionValue.getValue( ) );
}
}
}
return renderOption;
}
开发者ID:eclipse,项目名称:birt,代码行数:24,代码来源:PPTXEmitterDescriptor.java示例15: getPreferredRenderOption
import org.eclipse.birt.report.engine.api.IRenderOption; //导入依赖的package包/类
@Override
public IRenderOption getPreferredRenderOption( )
{
RenderOption renderOption = new RenderOption( );
renderOption.setEmitterID( getID( ) );
renderOption.setOutputFormat( "odt" ); //$NON-NLS-1$
if ( values != null && values.length > 0 )
{
for ( IOptionValue optionValue : values )
{
if ( optionValue != null )
{
renderOption.setOption(
getRenderOptionName( optionValue.getName( ) ),
optionValue.getValue( ) );
}
}
}
return renderOption;
}
开发者ID:eclipse,项目名称:birt,代码行数:24,代码来源:OdtEmitterDescriptor.java本文标签属性:
示例:示例志愿表
代码:代码零九
java:java模拟器
IRenderOption:IRenderOption