Java IRenderOption类代码示例(javairenderoption类的具体用法)

本文整理汇总了Java中org.eclipse.birt.report.engine.api.IRenderOption的典型用法代码示例。如果您正苦于以下问题:Java IRenderOption类的具体用法?Java IRenderOption怎么用?Java IRenderOption使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Java IRenderOption类代码示例(javairenderoption类的具体用法)

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

上一篇:Java LinearGradient类代码示例
下一篇:骆马湖旅游景点介绍(新沂骆马湖在哪儿)(新沂骆马湖在哪儿)

为您推荐