• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java JRGraphEnvInitializer类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



JRGraphEnvInitializer类属于net.sf.jasperreports.engine.util包,在下文中一共展示了JRGraphEnvInitializer类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: checkAwtFont

import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
/**
 *
 */
public void checkAwtFont(String name, boolean ignoreMissingFont)
{
	if (!JRGraphEnvInitializer.isAwtFontAvailable(name))
	{
		if (ignoreMissingFont)
		{
			Set<String> missingFontNames = threadMissingFontsCache.get();
			if (!missingFontNames.contains(name))
			{
				missingFontNames.add(name);
				if (log.isWarnEnabled())
				{
					log.warn("Font '" + name + "' is not available to the JVM. For more details, see http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/util/JRFontNotFoundException.html");
				}
			}
		}
		else
		{
			throw new JRFontNotFoundException(name);
		}
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:FontUtil.java


示例2: JRPrinterAWT300

import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
/**
 *
 */
protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException
{
	JRGraphEnvInitializer.initializeGraphEnv();
	
	jasperPrint = jrPrint;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:10,代码来源:JRPrinterAWT300.java


示例3: JRPrinterAWT

import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
/**
 *
 */
public JRPrinterAWT(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint) throws JRException
{
	JRGraphEnvInitializer.initializeGraphEnv();
	
	this.jasperReportsContext = jasperReportsContext;
	this.jasperPrint = jasperPrint;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:11,代码来源:JRPrinterAWT.java


示例4: JRGraphics2DExporter

import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
/**
 *
 */
public JRGraphics2DExporter(JasperReportsContext jasperReportsContext) throws JRException
{
	super(jasperReportsContext);
	
	JRGraphEnvInitializer.initializeGraphEnv();

	exporterContext = new ExporterContext();
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:12,代码来源:JRGraphics2DExporter.java


示例5: BaseReportFiller

import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
public BaseReportFiller(JasperReportsContext jasperReportsContext, JasperReport jasperReport, 
		FillerParent parent) throws JRException
{
	JRGraphEnvInitializer.initializeGraphEnv();
	
	setJasperReportsContext(jasperReportsContext);
	
	this.jasperReport = jasperReport;
	jasperReportSet();
	
	this.parent = parent;

	DatasetExpressionEvaluator initEvaluator = null;
	if (parent == null)
	{
		fillContext = new JRFillContext(this);
		printTransferPropertyPrefixes = readPrintTransferPropertyPrefixes();
	}
	else
	{
		fillContext = parent.getFiller().fillContext;
		printTransferPropertyPrefixes = parent.getFiller().printTransferPropertyPrefixes;
		initEvaluator = parent.getCachedEvaluator();
	}
	
	this.fillerId = fillContext.generatedFillerId();
	if (log.isDebugEnabled())
	{
		log.debug("Fill " + fillerId + ": created for " + jasperReport.getName());
	}
	
	if (initEvaluator == null)
	{
		calculator = JRFillDataset.createCalculator(jasperReportsContext, jasperReport, jasperReport.getMainDataset());
	}
	else
	{
		calculator = new JRCalculator(initEvaluator);
	}
	
	jasperPrint = new JasperPrint();
	
	factory = initFillFactory();

	createDatasets();
	mainDataset = factory.getDataset(jasperReport.getMainDataset());
	
	if (parent == null)
	{
		FillDatasetPosition masterFillPosition = new FillDatasetPosition(null);
		mainDataset.setFillPosition(masterFillPosition);
	}

	delayedActions = new DelayedFillActions(this);
	if (log.isDebugEnabled())
	{
		log.debug("created delayed actions " + delayedActions.getId() + " for filler " + fillerId);
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:60,代码来源:BaseReportFiller.java


示例6: JRPrinterAWT300

import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
/**
 *
    * @param jrPrint
    * @param jrPrint
    * @throws net.sf.jasperreports.engine.JRException
    * @throws JRException
 */
protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException
{
	JRGraphEnvInitializer.initializeGraphEnv();
	
	jasperPrint = jrPrint;
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:14,代码来源:JRPrinterAWT300.java



注:本文中的net.sf.jasperreports.engine.util.JRGraphEnvInitializer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java UMLResourcesUtil类代码示例发布时间:2022-05-23
下一篇:
Java Encoder类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap